fredsa / gwt-dnd

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

GWT DND does dragging even on Middle or Right mouse click. Ideally drag and drop should be allowed only on left mouse button down. #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of GWT are you using? 1.3.3? 1.4.10? Other?
GWT 1.4 SVN Head (GWT 1.4 RC2)
What version of the gwt-dnd jar file or library file are you using?
gwt-dragdrop-1.1.jar    
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?
Both
What browser(s) do you use? Firefox, IE, Safari, other?
FireFox, IE
What is the browser version (if you know) from Help->About?
FireFox 2.0+ , IE 6
What steps will reproduce the problem? Please attach sample code if you can.
1. Use the online demo
2. Drag and Drop with Right mouse button down
3. Drag and Drop with Middle/Scroll mouse button down

What is the expected output? What do you see instead?
We expect Dragging to happen only when the user presses the left mouse
click, now the dragging happens when the user presses middle and right
mouse buttons also.

Do you have a workaround?
None

Please provide any additional information below.

GWT 1.4 RC2 (or SVN Head) has the provision to detect which mouse button
user has pressed using DOM.eventGetCurrentEvent(). In your mouse adapter
class which implements MouseListener interfacte, you can get the mouse
button using DOM.eventGetCurrentEvent() and then only on left mouse down
you can allow drag to start.

My Email address is
rohit.ghatol@synerzip.com/rohitghatol@yahoo.com/rohitsghatol@gmail.com. I
would be more than happy to contribut this change to GWT DND, if you allow
me to.

Original issue reported on code.google.com by rohitsgh...@gmail.com on 16 Aug 2007 at 4:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks, Rohit.

Fix committed as r279.

Original comment by fredsa on 17 Aug 2007 at 12:32

GoogleCodeExporter commented 9 years ago
Hi Fred,
The GWT 1.4 RC2 release is out, we are now eagerly awaiting a next release from 
GWT
DND :).

thanks and regards,
Rohit

Original comment by rohitsgh...@gmail.com on 21 Aug 2007 at 2:47

GoogleCodeExporter commented 9 years ago

Original comment by fredsa on 23 Aug 2007 at 3:50