Skip to content

Add scroller prop to programmatically pause scrolling and initialScrollBehavior #73

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

Merged
merged 18 commits into from
Jan 4, 2021

Conversation

compulim
Copy link
Owner

@compulim compulim commented Jan 4, 2021

Changelog

Added

  • Added scroller prop for limiting scroll distance when mode is set to bottom, in PR #73
  • Added initialScrollBehavior prop for first scroll behavior. When set to "auto" (discrete scrolling), it will jump to end on initialization. in PR #73
  • Added debug prop for dumping debug log to console, in PR #73
  • Improved performance by separating StateContext into 2 tiers, in PR #73

Fixed

  • Emptying container should regain stickiness, in PR #73

Design

scroller prop

Added a scroller prop to programmatically control how far to scroll, when the view is sticky.

If the scroll distance is less than maximum, auto-scroll will pause.

initialScrollBehavior prop

Added an initialScrollBehavior prop to control the first auto-scroll behavior. If set to "auto", the scroll will be discrete (a.k.a. jump).

@compulim compulim merged commit 3ea0392 into master Jan 4, 2021
@compulim compulim deleted the feat-scroller branch January 4, 2021 05:07
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

Successfully merging this pull request may close these issues.

1 participant