From 534eada6d086f7cc466883f49e48578e250d39dd Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 3 Feb 2012 15:02:50 +0000 Subject: [PATCH] #8345, #8346 Window drag and resize are now activated only by the left mouse button svn changeset:22889/svn branch:6.7 --- src/com/vaadin/terminal/gwt/client/ui/VWindow.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) { -- 2.39.5