Skip to content

There is no method for Scroll end #355

Open

Description

@takshch

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.

Activity

  1. itshallrun commented on Jun 27, 2020

    @itshallrun

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions