From e8df28ec35307d925e6ea71bccea56e501734a51 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 26 Aug 2016 17:40:13 +0200 Subject: [PATCH] Fixed jump to top in IE, decreased trigger height --- .../install/files/js/WoltLabSuite/Core/Ui/Page/JumpToTop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/JumpToTop.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/JumpToTop.js index 4340298564..231f78afef 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/JumpToTop.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/JumpToTop.js @@ -75,7 +75,7 @@ define(['Environment', 'Language', './Action'], function(Environment, Language, _afterScroll: function() { this._timeoutScroll = null; - PageAction[(window.scrollY >= window.innerHeight / 2) ? 'show' : 'hide']('toTop'); + PageAction[(window.pageYOffset >= 300) ? 'show' : 'hide']('toTop'); } }; -- 2.20.1