mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
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…
x
Reference in New Issue
Block a user