From eb5ffa3a414c2def6d669067f647c06c70c3c5eb Mon Sep 17 00:00:00 2001 From: Denis Anisimov Date: Sat, 5 Apr 2014 13:23:50 +0300 Subject: [PATCH] Start drag only when mouse left button is pressed (#9814). Change-Id: Ibe9734185af0e6ba4399b20f2f1bb55a3207abd5 --- client/src/com/vaadin/client/ui/VDragAndDropWrapper.java | 1 + 1 file changed, 1 insertion(+) 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 } -- 2.39.5