fredsa / gwt-dnd

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

making a widget draggable stops it to receive MouseUp events #154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Does the issue occur in "quirks mode", "standards mode" or both? If you
don't know, does your HTML page contains a DOCTYPE declaration?
Standards Mode

What version of GWT are you using? 1.4.60? 2.0.4? Other?
2.4.2

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

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

Does the issue occur in web mode, development mode (formerly "hosted
mode"), both or don't know?
At least, in development mode

What browser(s) do you use? Chrome, Firefox, IE, Safari, other?
Chrome and Firefox

What steps will reproduce the problem? Please attach sample code if you
can.
1. Define a custom widget containing a PushButton children, extending composite
2. Make a PickupDragController to make the widget draggable
3. setBehaviorDragStartSensitivity to something > 0
4. Implement HasMouseDownHandlers in the new widget

What is the expected output? What do you see instead?
The expected output is a draggable widget with buttons, which should be 
clickable.
We find instead a draggable widget with useless buttons.

Do you have a workaround?
Use MouseDown events on the buttons (its behaviour is not the desired one)

Please provide any additional information below.

Original issue reported on code.google.com by pablo.ts...@gmail.com on 30 Nov 2011 at 10:07

GoogleCodeExporter commented 9 years ago
See MouseDragHandler line 160.  event.preventDefault() is called, and thus all 
future events are cancelled.  I am reverting to an older version of gwt-dnd 
because I can no longer listen for clicks.

Original comment by Andiga...@gmail.com on 23 Jan 2012 at 6:32

GoogleCodeExporter commented 9 years ago
Thanks a lot for the info. I will take a look.

Original comment by pablo.ts...@gmail.com on 23 Jan 2012 at 6:38

GoogleCodeExporter commented 9 years ago
Please try the jar attached to this comment and let me know if that solves your 
problem:
  http://code.google.com/p/gwt-dnd/issues/detail?id=52#c6

Original comment by fredsa on 31 Jan 2012 at 5:58

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
I am still having this issue. No Widget that is made draggable seems to be 
receiving mouseUpEvents. To which version of gwt-dnd do i have to revert to 
make this work again?

Original comment by rohr...@gmail.com on 25 Apr 2013 at 10:43