mirror of https://github.com/twbs/bootstrap.git
Use pageYOffset instead of scrollY
This commit is contained in:
parent
f93930199e
commit
d1b742f228
|
|
@ -186,7 +186,7 @@ const ScrollSpy = (($) => {
|
|||
|
||||
_getScrollTop() {
|
||||
return this._scrollElement === window ?
|
||||
this._scrollElement.scrollY : this._scrollElement.scrollTop
|
||||
this._scrollElement.pageYOffset : this._scrollElement.scrollTop
|
||||
}
|
||||
|
||||
_getScrollHeight() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue