diff options
author | Artur Signell <artur.signell@itmill.com> | 2012-02-03 15:02:50 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2012-02-03 15:02:50 +0000 |
commit | 534eada6d086f7cc466883f49e48578e250d39dd (patch) | |
tree | c4f3d72b9c776056969183de1364a94b2a617924 | |
parent | e9d919b130333476311c03f247524f732d02cce9 (diff) | |
download | vaadin-framework-534eada6d086f7cc466883f49e48578e250d39dd.tar.gz vaadin-framework-534eada6d086f7cc466883f49e48578e250d39dd.zip |
#8345, #8346 Window drag and resize are now activated only by the left mouse button
svn changeset:22889/svn branch:6.7
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VWindow.java | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |