summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/src/com/vaadin/client/ui/VWindow.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/VWindow.java b/client/src/com/vaadin/client/ui/VWindow.java
index 03a65e8ece..e27ad383a9 100644
--- a/client/src/com/vaadin/client/ui/VWindow.java
+++ b/client/src/com/vaadin/client/ui/VWindow.java
@@ -708,6 +708,12 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
// dblclick handled in connector
if (type != Event.ONDBLCLICK && draggable) {
if (type == Event.ONMOUSEDOWN) {
+ /**
+ * Prevents accidental selection of window caption or
+ * content. (#12726)
+ */
+ event.preventDefault();
+
headerDragPending = event;
} else if (type == Event.ONMOUSEMOVE
&& headerDragPending != null) {