Pluggable browser scroll management
MIT License
Bot releases are hidden (Show)
addTransitionHook
to addNavigationListener
(#373)addEventListener
polyfill (#374)
POP
navigations (#369)Published by taion over 5 years ago
history.scrollRestoration
before unloading page (#134)Published by taion over 6 years ago
scrollRestoration
when it is not writable (#127)Published by taion over 6 years ago
This release was published in error. It's the same as v0.9.8.
Published by taion over 6 years ago
scrollRestoration
on iOS Safari to work around bug there (#129)Published by taion over 6 years ago
This release was published in error. It's the same as v0.9.6.
Published by taion almost 7 years ago
scrollToTarget
part of the public API that can be overridden by subclasses (#125)Published by taion about 7 years ago
window
elements (#122)Published by taion over 7 years ago
Published by taion over 7 years ago
Published by taion almost 8 years ago
Published by taion almost 8 years ago
This release removes the previous withScroll
history enhancer along with any direct dependencies on history. Instead, this library now only needs the ability to install a transition hook and to interact with page session storage.
This change will allow things like simultaneous full compatibility with history v2 and v3 (net of bugs with hash history in the latter) in react-router-scroll, as well as integration with other history management libraries.
ScrollBehavior
class (#107)withScroll
history enhancer (#107)history
and instead use more granular configuration of ScrollBehavior
objects to allow integrate with other history management libraries (#107)readPosition
method on ScrollBehavior
; the read
method on the provided stateStorage
object exposes the same data (#107)Published by taion about 8 years ago
createHref
instead of createPath
to minimize used surface area of history API (#100)Published by taion about 8 years ago
.default
(#98)Published by taion about 8 years ago
ScrollBehavior
to take a shouldUpdateScroll
function at construction time, and change updateScroll
to take the previous and next context for shouldUpdateScroll
callbacks (#91, #94)registerScrollElement
method to extended history for managing scroll behavior of elements other than window
(#86, #91, #94)Published by taion over 8 years ago
getCurrentLocation
instead of getCurrentKey
in ScrollBehavior
constructor (#72)scrollPosition
from location.state
(#73)Published by taion over 8 years ago