Releases: taion/scroll-behavior
v0.6.0
This release is in preparation for releasing react-router-scroll, which will properly integrate this scroll behavior management with React Router.
v0.5.0
v0.4.0
v0.3.4
v0.3.3
v0.3.2
v0.3.1
v0.3.0
This is a significant upgrade to how scroll behavior is handled.
Instead of asynchronously updating scroll position on a timer after the location update, this release updates scroll position immediately after the location update. This should avoid flashes of the incorrect scroll position.
The current API has never supported asynchronous React Router transitions particularly well, and now it really doesn't support them in any particularly elegant way. We now explicitly note this given the change to update scroll position synchronously.
v0.2.0
Three changes on this release:
- We dropped "
Behavior
" from the names of the history enhancers, so it's just e.g.useStandardScroll
now - The scroll behaviors now only set up listeners when the history is first used, and clean up properly after themselves when the histories stop being used
- We now have test coverage on Chrome and Firefox for basic use cases
v0.1.0
This is the initial release of the scroll-behavior
package. This initial release includes three scroll behaviors:
useScrollToTopBehavior
useSimpleScrollBehavior
useStandardScrollBehavior
Ideally, we would like useStandardScrollBehavior
to be appropriate for the typical use case of imitating browser scroll behavior. This release includes the other scroll behaviors for completeness, and to allow users to compare the scroll behaviors and to offer feedback.