]> source.dussan.org Git - vaadin-framework.git/commitdiff
Start drag only when mouse left button is pressed (#9814).
authorDenis Anisimov <denis@vaadin.com>
Sat, 5 Apr 2014 10:23:50 +0000 (13:23 +0300)
committerVaadin Code Review <review@vaadin.com>
Tue, 8 Apr 2014 10:58:12 +0000 (10:58 +0000)
Change-Id: Ibe9734185af0e6ba4399b20f2f1bb55a3207abd5

client/src/com/vaadin/client/ui/VDragAndDropWrapper.java

index bf17929f40a68b31c3356646085ff416e0483769..237d2b55c299c90c4e7c720e2c2ba7e23b7eaf46 100644 (file)
@@ -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
                 }