From a40ad6fd544a4d89ab844e77c135ba029f38f64a Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Sun, 13 Mar 2016 15:10:16 -0400 Subject: [PATCH] Allow window to be dragged from anywhere Fixes: https://github.com/resin-io/etcher/issues/191 --- lib/css/angular.css | 1 + lib/css/desktop.css | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/lib/css/angular.css b/lib/css/angular.css index bf957502..e6f7f99f 100644 --- a/lib/css/angular.css +++ b/lib/css/angular.css @@ -16,4 +16,5 @@ [ng-click] { cursor: pointer; + -webkit-app-region: no-drag; } diff --git a/lib/css/desktop.css b/lib/css/desktop.css index c3fd0bd4..f04cf18b 100644 --- a/lib/css/desktop.css +++ b/lib/css/desktop.css @@ -19,6 +19,18 @@ body { -webkit-user-select: none; } + +/* Allow window to be dragged from anywhere */ +* { + -webkit-app-region: drag; +} + +button, +a, +input { + -webkit-app-region: no-drag; +} + /* Prevent WebView bounce effect in OS X */ html, body {