Fixed jump to top in IE, decreased trigger height
authorAlexander Ebert <ebert@woltlab.com>
Fri, 26 Aug 2016 15:40:13 +0000 (17:40 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 26 Aug 2016 15:40:18 +0000 (17:40 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/JumpToTop.js

index 434029856489c815d97e17f3a2f04d683165433b..231f78afef72d2b0a68a36c91e30c0168f151910 100644 (file)
@@ -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');
                }
        };