From 010d2a4044faf17517a26edcebb912165e1f6c9a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 8 Sep 2016 09:33:28 +0200 Subject: [PATCH] Fixed sticky page header in IE 11 --- .../install/files/js/WoltLabSuite/Core/Ui/Page/Header/Fixed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- 2.20.1