From 07b1a9d75a139e6ee30e35b13bd4f8108c0350b3 Mon Sep 17 00:00:00 2001 From: Felype Santiago Ferreira Date: Mon, 11 Nov 2013 15:19:48 +0200 Subject: [PATCH] Prevents accidental selection of window caption or content. (#12726) Change-Id: Ida479ef0c421cf67b2863cf78c76b495337f30cf --- client/src/com/vaadin/client/ui/VWindow.java | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 2.39.5