From d1b742f228419b2ab9f5943c686e039f0e1457bc Mon Sep 17 00:00:00 2001 From: Pierre-Denis Vanduynslager Date: Wed, 4 Jan 2017 12:44:50 -0500 Subject: [PATCH] Use pageYOffset instead of scrollY --- js/src/scrollspy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js index 0a4708bf97..84fa9d6a4f 100644 --- a/js/src/scrollspy.js +++ b/js/src/scrollspy.js @@ -186,7 +186,7 @@ const ScrollSpy = (($) => { _getScrollTop() { return this._scrollElement === window ? - this._scrollElement.scrollY : this._scrollElement.scrollTop + this._scrollElement.pageYOffset : this._scrollElement.scrollTop } _getScrollHeight() {