diff options
author | Denis Anisimov <denis@vaadin.com> | 2014-04-05 13:23:50 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-04-08 10:58:12 +0000 |
commit | eb5ffa3a414c2def6d669067f647c06c70c3c5eb (patch) | |
tree | c4f29c8c4d70fc6aca7550bb9541a6dc7e825fb6 /client | |
parent | 31f05d0001b6911fcac93bf09b0301dbf1385fa4 (diff) | |
download | vaadin-framework-eb5ffa3a414c2def6d669067f647c06c70c3c5eb.tar.gz vaadin-framework-eb5ffa3a414c2def6d669067f647c06c70c3c5eb.zip |
Start drag only when mouse left button is pressed (#9814).
Change-Id: Ibe9734185af0e6ba4399b20f2f1bb55a3207abd5
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/VDragAndDropWrapper.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/VDragAndDropWrapper.java b/client/src/com/vaadin/client/ui/VDragAndDropWrapper.java index bf17929f40..237d2b55c2 100644 --- a/client/src/com/vaadin/client/ui/VDragAndDropWrapper.java +++ b/client/src/com/vaadin/client/ui/VDragAndDropWrapper.java @@ -82,6 +82,7 @@ public class VDragAndDropWrapper extends VCustomComponent implements @Override public void onMouseDown(MouseDownEvent event) { if (getConnector().isEnabled() + && event.getNativeEvent().getButton() == Event.BUTTON_LEFT && startDrag(event.getNativeEvent())) { event.preventDefault(); // prevent text selection } |