Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#6345 closed defect (fixed)

Tree dnd : dragging an item by the right part of the drag handle makes dnd fail (FF2)

Reported by: jfcunat Owned by: bill
Priority: high Milestone: 1.2
Component: Dijit Version: 1.1.0
Keywords: Cc: damien.derouet@…, agarandeau.ext@…
Blocked By: Blocking:

Description (last modified by bill)

With Firefox, in the sample test_Tree_DnD.html, when you drag an item by clicking on the drag handle but not on the text of the item (right to it):

you are not able to drop the item on the tree:

The avatar indicator is green but when you drop on a tree node, the item is not moved. Whta is trange is that depending of where you drop it, either the item is lost for ever, or it goes back to its original place.

Attachments (3)

tree_dnd1.JPG (14.6 KB) - added by jfcunat 12 years ago.
tree_dnd2.JPG (25.0 KB) - added by jfcunat 12 years ago.
dndFF2.patch (444 bytes) - added by jfcunat 11 years ago.
patch css for dnd examples

Download all attachments as: .zip

Change History (12)

comment:1 Changed 12 years ago by Adam Peller

Owner: set to bill

comment:2 Changed 12 years ago by bill

Milestone: 1.1.11.1
Resolution: fixed
Status: newclosed

I tried test_Tree_Dnd.html from the 1.1 release and it's working for me. I remember the thing you mentioned "the item is lost for ever" was a problem before the big tree refactor... the item wasn't really lost but rather the Tree didn't update to display it. It's in the store... anyway the point being that I suspect this problem you are having was fixed in 1.1.

Changed 12 years ago by jfcunat

Attachment: tree_dnd1.JPG added

comment:3 Changed 12 years ago by jfcunat

Resolution: fixed
Status: closedreopened

I have tested again the sample on the current dev release : dijit/tests/tree/test_Tree_DnD.html and I have the same problem. In this sample : dijit/tests/tree/test_Tree_DnD.html When I'm dragging an element of the List of Items to be categorized with the right part of the dragging handle (see capture) and I'm trying to drop into the tree, nothing happens (no item droped) whatever the node. But the avatar was green indicating that the item is acceptable (see capture 2)

Changed 12 years ago by jfcunat

Attachment: tree_dnd2.JPG added

comment:4 Changed 12 years ago by jfcunat

Cc: agarandeau.ext@… added

comment:5 Changed 12 years ago by bill

Description: modified (diff)
Milestone: 1.11.2
Summary: Tree dnd : dragging an item by the right part of the drag handle makes dnd failTree dnd : dragging an item by the right part of the drag handle makes dnd fail (FF2)
Version: 1.1b11.1.0

Hmm, that is strange. It works for me on FF3/mac but is failing on FF2/windows.

comment:6 Changed 11 years ago by bill

Resolution: duplicate
Status: reopenedclosed

Ah right, this is a dup/manifestation of #4854 / #6350. Unfortunately, there's no known fix... The good news is that it works in FF3 and all other browsers.

Changed 11 years ago by jfcunat

Attachment: dndFF2.patch added

patch css for dnd examples

comment:7 Changed 11 years ago by jfcunat

Resolution: duplicate
Status: closedreopened

Added a patch to make it work on FF2. Just add a -moz-user-select:none on .dj_ff2 .dojoDndItem. Seems to work in all cases

comment:8 Changed 11 years ago by bill

Resolution: fixed
Status: reopenedclosed

(In [14479]) Add workaround to long-standing FF2 drag problem. Thanks to jfcunat for the fix! Fixes #6345 !strict. Refs #4854, #6350. Also fixing duplicate id's in the test file (if you tried to drag "lettuce" it would think you were dragging "carrot").

comment:9 Changed 11 years ago by bill

Thanks for the fix! I thought that was an unsolvable problem.

Note: See TracTickets for help on using tickets.