From d500e845817a8398bd15b012ae260b8dba301bd9 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 2 Oct 2016 09:48:01 +0200 Subject: [PATCH] Properly disable body scrolling when overlays are active Also works around a strange bug in Chrome for Android that causes the form submit buttons to vanish if page is being scrolled. --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js index 42b4012d7a..e1615e13bf 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js @@ -242,6 +242,9 @@ define( } }).bind(this), 200); } + else if (Environment.platform() !== 'desktop') { + UiScreen.scrollDisable(); + } return data; }, @@ -574,7 +577,7 @@ define( elData(_container, 'close-on-click', (data.backdropCloseOnClick ? 'true' : 'false')); } - if (Environment.platform() === 'ios') { + if (Environment.platform() !== 'desktop') { UiScreen.scrollEnable(); } }, -- 2.20.1