diff options
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java index 839b5dd7a6..fdb3c47ba3 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java @@ -308,6 +308,8 @@ public class VDragAndDropManager { lazyAttachDragElement.run(); } } + // just capture something to prevent text selection in IE + Event.setCapture(RootPanel.getBodyElement()); } }; @@ -473,6 +475,10 @@ public class VDragAndDropManager { currentDrag = null; clearDragElement(); + + // release the capture (set to prevent text selection in IE) + Event.releaseCapture(RootPanel.getBodyElement()); + } private void clearDragElement() { |