From: Alexander Ebert Date: Sun, 2 Oct 2016 07:48:01 +0000 (+0200) Subject: Properly disable body scrolling when overlays are active X-Git-Tag: 3.0.0_Beta_2~36 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d500e845817a8398bd15b012ae260b8dba301bd9;p=GitHub%2FWoltLab%2FWCF.git 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. --- 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(); } },