From: Alexander Ebert Date: Thu, 8 Sep 2016 07:33:28 +0000 (+0200) Subject: Fixed sticky page header in IE 11 X-Git-Tag: 3.0.0_Beta_1~263 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=010d2a4044faf17517a26edcebb912165e1f6c9a;p=GitHub%2FWoltLab%2FWCF.git Fixed sticky page header in IE 11 --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Header/Fixed.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Header/Fixed.js index 47b68fda0c..2861b35bb9 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Header/Fixed.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Header/Fixed.js @@ -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');