Fixed sticky page header in IE 11
authorAlexander Ebert <ebert@woltlab.com>
Thu, 8 Sep 2016 07:33:28 +0000 (09:33 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 8 Sep 2016 07:33:28 +0000 (09:33 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Header/Fixed.js

index 47b68fda0c609ed083ec471af41d10634afd75fb..2861b35bb9c371359827faa429be5818c511822c 100644 (file)
@@ -132,7 +132,7 @@ define(['Core', 'EventHandler', 'Ui/Alignment', 'Ui/CloseOverlay', 'Ui/Screen',
                        
                        var wasFixed = _isFixed;
                        
-                       _isFixed = (window.scrollY > _triggerHeight);
+                       _isFixed = (window.pageYOffset > _triggerHeight);
                        
                        _pageHeader.classList[_isFixed ? 'add' : 'remove']('sticky');
                        _pageHeaderContainer.classList[_isFixed ? 'add' : 'remove']('stickyPageHeader');