From: Alexander Ebert Date: Tue, 11 Oct 2016 07:59:24 +0000 (+0200) Subject: Fixed a scroll issue on iOS X-Git-Tag: 3.0.0_Beta_3~50^2~18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=565b59caadf73fd7b5a238bda4efa00285743d80;p=GitHub%2FWoltLab%2FWCF.git Fixed a scroll issue on iOS --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js index e8a7be8819..9c08fe0a90 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js @@ -143,9 +143,11 @@ define( _main.addEventListener(WCF_CLICK_EVENT, function() { _searchBar.classList.remove('open'); - if (Environment.platform() === 'ios') { + if (Environment.platform() === 'ios' && scrollTop !== null) { UiScreen.scrollEnable(); document.body.scrollTop = scrollTop; + + scrollTop = null; } }); },