From: Alexander Ebert Date: Wed, 27 Jul 2016 10:18:00 +0000 (+0200) Subject: Using page(X|Y)Offset instead of scroll(X|Y) X-Git-Tag: 3.0.0_Beta_1~959 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=38a3725cc105a5952abb17e5e9776eace8efcba2;p=GitHub%2FWoltLab%2FWCF.git Using page(X|Y)Offset instead of scroll(X|Y) IE11 doesn't support these and we have to support it :( Fixes #2065 --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Dom/Util.js b/wcfsetup/install/files/js/WoltLab/WCF/Dom/Util.js index a28e697761..3427d48026 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Dom/Util.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Dom/Util.js @@ -154,8 +154,8 @@ define(['Environment', 'StringUtil'], function(Environment, StringUtil) { var rect = el.getBoundingClientRect(); return { - top: rect.top + window.scrollY, - left: rect.left + window.scrollX + top: rect.top + window.pageYOffset, + left: rect.left + window.pageXOffset }; },