diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/client/ui/IWindow.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IWindow.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IWindow.java index adae8e218c..6895130ab8 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IWindow.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IWindow.java @@ -351,6 +351,7 @@ public class IWindow extends PopupPanel implements Paintable, ScrollListener { startY = DOM.eventGetScreenY(event); origX = DOM.getAbsoluteLeft(getElement()); origY = DOM.getAbsoluteTop(getElement()); + DOM.eventPreventDefault(event); DOM.addEventPreview(this); break; case Event.ONMOUSEUP: @@ -363,7 +364,6 @@ public class IWindow extends PopupPanel implements Paintable, ScrollListener { int y = DOM.eventGetScreenY(event) - startY + origY; this.setPopupPosition(x, y); DOM.eventPreventDefault(event); - } break; default: |