fredsa / gwt-dnd

Library providing easy to use mouse or touch based drag-and-drop capabilities to GWT
43 stars 41 forks source link

Start Drag, then rt-click, then release drag causes drag item to "follow to the cursor. #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of GWT are you using? 1.3.3? 1.4.60? Other?
1.7.0

What version of the gwt-dnd jar file or library file are you using?
2.6.5

What operating system(s) are you using? Windows? Linux? Mac?
Windows

Does the issue occur in web mode, hosted mode, both or don't know?
Web mode

What browser(s) do you use? Firefox, IE, Safari, other?
IE only.

What is the browser version (if you know) from Help->About?
8.0.6001.18702

What steps will reproduce the problem? Please attach sample code if you
can.
1. Open gwt-dnd demo page, #2.
2. Start dragging Widget #1.
3. While dragging, Right-click the mouse. The context menu displays.
4. Release both buttons. Menu still showing. Moving mouse doesn't move the
drag item. It appears dropped.
5. Click anywhere to close the contextual menu.
6. Try dragging another Widget. Selects text instead.
7. Move mouse up to "Source code" links. Widget #1 appears!

What is the expected output? What do you see instead?
The right click would be ignored. The drop would occur as expected when the
left button was released.

Do you have a workaround?
No.

Original issue reported on code.google.com by mbis...@gmail.com on 19 Nov 2009 at 9:42

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I already have the same problem. 
In my case it occurs if you use 
a PickupDragController 

some lines:
pickupDragController = new PickupDragController(boundaryPanel, true);
pickupDragController.setBehaviorConstrainedToBoundaryPanel(false);
pickupDragController.setBehaviorMultipleSelection(false);

together with AbsolutePositionDropController

some lines:
for (all lines) {
   for (all rows) {
      dropControllers[line][row] = new 
AbsolutePositionDropController(squares[line][row]);
      dragController.registerDropController(dropControllers[line][row]);
   }
}

The problem also occurs in Google Chrome and others.

Original comment by luno1...@gmail.com on 5 Jan 2010 at 9:34

GoogleCodeExporter commented 9 years ago
This bug appears fixed in gwt-dnd 3.0 + GWT 2.0.3.

Original comment by mbis...@gmail.com on 15 Mar 2010 at 6:53

GoogleCodeExporter commented 9 years ago
Can you verify with the latest gwt-dnd?

Also, can you provide a complete code sample to reproduce the issue?

Original comment by fredsa@google.com on 10 Jul 2010 at 6:43

GoogleCodeExporter commented 9 years ago
I have verified that this is fixed with gwt-dnd 3.0.1.

Original comment by mbis...@gmail.com on 14 Jul 2010 at 11:54

GoogleCodeExporter commented 9 years ago
I believe that the mouseup event is being captured by the window opened at 
right-click
not allowing the browser to see that you have released the button until you 
click again

Original comment by keggy9...@gmail.com on 30 Jul 2010 at 7:47

GoogleCodeExporter commented 9 years ago
Assuming fixed in 3.0.1

Thanks mbishop!

Original comment by fredsa on 31 Jan 2012 at 6:02