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
This commit is contained in:
Benedict Aas 2018-05-29 11:23:50 +01:00
parent c47878202d
commit 117a7762e1

View File

@ -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 {