Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no method for Scroll end #355

Open
takshch opened this issue Jun 14, 2020 · 1 comment
Open

There is no method for Scroll end #355

takshch opened this issue Jun 14, 2020 · 1 comment

Comments

@takshch
Copy link

takshch commented Jun 14, 2020

There is no method for Scroll End. A function which will be called when scroll thumb is at end of track.
I need to add infinity scroll feature.
Tell me the solution if available.

@itshallrun
Copy link

itshallrun commented Jun 27, 2020

Pass a callback to "onScrollFrame", it will give you the current position. Lsten for the values.top to figure out if the current scroll hit the end.

values.top: (Number) scrollTop progress, from 0 to 1

onScrollFrame: (Function) Runs inside the animation frame.
Signature: onScroll(values)
values: (Object) Values about the current position
values.top: (Number) scrollTop progess, from 0 to 1
values.left: (Number) scrollLeft progess, from 0 to 1
values.clientWidth: (Number) Width of the view
values.clientHeight: (Number) Height of the view
values.scrollWidth: (Number) Native scrollWidth
values.scrollHeight: (Number) Native scrollHeight
values.scrollLeft: (Number) Native scrollLeft
values.scrollTop: (Number) Native scrollTop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants