From: Alexander Ebert Date: Fri, 26 Aug 2016 15:40:13 +0000 (+0200) Subject: Fixed jump to top in IE, decreased trigger height X-Git-Tag: 3.0.0_Beta_1~469 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e8df28ec35307d925e6ea71bccea56e501734a51;p=GitHub%2FWoltLab%2FWCF.git Fixed jump to top in IE, decreased trigger height --- 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'); } };