From 565b59caadf73fd7b5a238bda4efa00285743d80 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 11 Oct 2016 09:59:24 +0200 Subject: [PATCH] Fixed a scroll issue on iOS --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } }); }, -- 2.20.1