scroll-behavior

Pluggable browser scroll management

MIT License

Downloads
205.8K
Stars
545
Committers
19

Bot releases are hidden (Show)

scroll-behavior - Latest Release

Published by taion over 4 years ago

  • Breaking: Rename addTransitionHook to addNavigationListener (#373)
  • Breaking: Drop addEventListener polyfill (#374)
    • This polyfill is now required for IE8 support
  • Feature: Save scroll position on page unload and on non-POP navigations (#369)
  • Chore: Add ES module build (#370)
scroll-behavior -

Published by taion over 4 years ago

  • Breaking: Use Page Lifecycle events instead of beforeunload (#344)
    • This is not expected to break any user code; however, pages that use scroll-behavior should now work with the page navigation cache
scroll-behavior -

Published by taion over 4 years ago

  • Bugfix: Add stop method to TypeScript definition for ScrollBehavior (#365)
scroll-behavior -

Published by taion almost 5 years ago

  • Feature: Export TypeScript types (#287)
  • Feature: Add API to pause scroll position saving (#306)
  • Bugfix: Always save the initial scroll position (#293)
scroll-behavior - v0.9.10

Published by taion over 5 years ago

  • Bugfix: Restore old value of history.scrollRestoration before unloading page (#134)
scroll-behavior - v0.9.8

Published by taion over 6 years ago

  • Bugfix: Do not attempt to set scrollRestoration when it is not writable (#127)
scroll-behavior - v0.9.9

Published by taion over 6 years ago

This release was published in error. It's the same as v0.9.8.

scroll-behavior - v0.9.6

Published by taion over 6 years ago

  • Bugfix: Do not set scrollRestoration on iOS Safari to work around bug there (#129)
scroll-behavior - v0.9.7

Published by taion over 6 years ago

This release was published in error. It's the same as v0.9.6.

scroll-behavior - v0.9.5

Published by taion almost 7 years ago

  • Feature: Make scrollToTarget part of the public API that can be overridden by subclasses (#125)
scroll-behavior - v0.9.4

Published by taion about 7 years ago

  • Feature: Save scroll position continually for non-window elements (#122)
scroll-behavior - v0.9.3

Published by taion over 7 years ago

  • Feature: Support scrolling to elements (#115, #116)
scroll-behavior - v0.9.2

Published by taion over 7 years ago

  • Bugfix: Don't check initial scroll position to avoid browser quirks (#110)
scroll-behavior - v0.9.1

Published by taion almost 8 years ago

  • Chore: Remove ES module build to avoid issues with transpiled imports in webpack 2 (#108)
scroll-behavior - v0.9.0

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.

  • Breaking: Change package export to be the ScrollBehavior class (#107)
  • Breaking: Remove withScroll history enhancer (#107)
  • Breaking/Feature: Remove explicit dependency on history and instead use more granular configuration of ScrollBehavior objects to allow integrate with other history management libraries (#107)
  • Breaking: Remove readPosition method on ScrollBehavior; the read method on the provided stateStorage object exposes the same data (#107)
scroll-behavior - v0.8.2

Published by taion about 8 years ago

  • Refactor: Use createHref instead of createPath to minimize used surface area of history API (#100)
scroll-behavior - v0.8.1

Published by taion about 8 years ago

  • Bugfix: Fix CommonJS exports to not require .default (#98)
scroll-behavior - v0.8.0

Published by taion about 8 years ago

  • Breaking: Change ScrollBehavior to take a shouldUpdateScroll function at construction time, and change updateScroll to take the previous and next context for shouldUpdateScroll callbacks (#91, #94)
  • Feature: Add registerScrollElement method to extended history for managing scroll behavior of elements other than window (#86, #91, #94)
scroll-behavior - v0.7.0

Published by taion over 8 years ago

  • Breaking: Take getCurrentLocation instead of getCurrentKey in ScrollBehavior constructor (#72)
  • Breaking: Remove scrollPosition from location.state (#73)
  • Feature: Support hash histories without query key (#74)
scroll-behavior - v0.6.1

Published by taion over 8 years ago

Package Rankings
Top 1.28% on Npmjs.org
Badges
Extracted from project README
Travis npm Codecov Discord