0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-07 04:54:24 +01:00

Use pageYOffset instead of scrollY

This commit is contained in:
Pierre-Denis Vanduynslager 2017-01-04 12:44:50 -05:00 committed by Mark Otto
parent f93930199e
commit d1b742f228

View File

@ -186,7 +186,7 @@ const ScrollSpy = (($) => {
_getScrollTop() { _getScrollTop() {
return this._scrollElement === window ? return this._scrollElement === window ?
this._scrollElement.scrollY : this._scrollElement.scrollTop this._scrollElement.pageYOffset : this._scrollElement.scrollTop
} }
_getScrollHeight() { _getScrollHeight() {