From: Artur Signell Date: Fri, 3 Feb 2012 15:02:50 +0000 (+0000) Subject: #8345, #8346 Window drag and resize are now activated only by the left mouse button X-Git-Tag: 7.0.0.alpha2~467^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=534eada6d086f7cc466883f49e48578e250d39dd;p=vaadin-framework.git #8345, #8346 Window drag and resize are now activated only by the left mouse button svn changeset:22889/svn branch:6.7 --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VWindow.java b/src/com/vaadin/terminal/gwt/client/ui/VWindow.java index 7b9ece24c9..de01061641 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VWindow.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VWindow.java @@ -953,7 +953,7 @@ public class VWindow extends VOverlay implements Container, } private void onResizeEvent(Event event) { - if (resizable) { + if (resizable && Util.isTouchEventOrLeftMouseButton(event)) { switch (event.getTypeInt()) { case Event.ONMOUSEDOWN: case Event.ONTOUCHSTART: @@ -1181,6 +1181,10 @@ public class VWindow extends VOverlay implements Container, } private void onDragEvent(Event event) { + if (!Util.isTouchEventOrLeftMouseButton(event)) { + return; + } + switch (DOM.eventGetType(event)) { case Event.ONTOUCHSTART: if (event.getTouches().length() > 1) {