)
}
+ _getOffsetHeight() {
+ return this._scrollElement === window ?
+ window.innerHeight : this._scrollElement.offsetHeight
+ }
+
_process() {
const scrollTop = this._getScrollTop() + this._config.offset
const scrollHeight = this._getScrollHeight()
const maxScroll = this._config.offset
+ scrollHeight
- - this._scrollElement.offsetHeight
+ - this._getOffsetHeight()
if (this._scrollHeight !== scrollHeight) {
this.refresh()
if (this._activeTarget !== target) {
this._activate(target)
}
+ return
}
if (this._activeTarget && scrollTop < this._offsets[0]) {