Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Scroll event reports position before it is clamped #44

Closed
ashthornton opened this issue May 1, 2021 · 0 comments
Closed

Scroll event reports position before it is clamped #44

ashthornton opened this issue May 1, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ashthornton
Copy link
Owner

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.

@ashthornton ashthornton added the bug Something isn't working label May 1, 2021
@ashthornton ashthornton self-assigned this May 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant