Listening to the scroll event like: ASScroll.on('scroll', scrollPos => console.log(scrollPos)) and scrolling to the top or bottom of the page will report the last scroll position before being clamped.
Clamp the scroll position BEFORE emitting this event.
Listening to the scroll event like:
ASScroll.on('scroll', scrollPos => console.log(scrollPos))
and scrolling to the top or bottom of the page will report the last scroll position before being clamped.Clamp the scroll position BEFORE emitting this event.