From 117a7762e1340a4a54d8f71ff552864fadbea69f Mon Sep 17 00:00:00 2001 From: Benedict Aas Date: Tue, 29 May 2018 11:23:50 +0100 Subject: [PATCH] fix(GUI): restrict webkit drag to header We ensure that the `-webkit-app-region` attribute is only set to `drag` on the header element and we explicitly disable it on modals, as this has unintended behaviour on a non-draggable window with touch-screens. Change-Type: patch --- lib/gui/css/desktop.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/gui/css/desktop.css b/lib/gui/css/desktop.css index 6c2da7ba..8c3e2100 100644 --- a/lib/gui/css/desktop.css +++ b/lib/gui/css/desktop.css @@ -21,10 +21,14 @@ body { /* Allow window to be dragged from anywhere */ -* { +body > header { -webkit-app-region: drag; } +.modal-body { + -webkit-app-region: no-drag; +} + button, a, input {