Skip to content

Releases: zengabor/zenscroll

Zenscroll 4.0.2

28 Feb 22:16
Compare
Choose a tag to compare
  • Combines existing history state on in-page navigation, see #47
  • Avoids errors on old browsers (e.g., IE9) that don’t support history.pushState() and history.replaceState(), see #36

Zenscroll 4.0.1

28 Feb 20:57
Compare
Choose a tag to compare
  • Fixes an issue related to getComputedStyle() receiving a non-existent element

Latest: 4.0.2

28 Feb 22:17
Compare
Choose a tag to compare
  • Combines existing history state on in-page navigation, see #47
  • Avoids errors on old browsers (e.g., IE9) that don’t support history.pushState() and history.replaceState(), see #36

4.0.0

18 Mar 06:42
Compare
Choose a tag to compare
  • Automatic edge offset adjustment on load, implementing #29
  • Limited support for the hashchange event and the CSS pseudo :target, implementing #31
  • Fix #30 – A special case when the target is within a statically positioned element
  • Fix #32 – The hash was not executed on first load
  • Fix #27 – Zenscroll can be now referenced from the
  • Fix an incorrect calculation of the height of scrollable elements which ignored fixed scrollbars that are present on some platforms, like Windows
  • setup() now returns the current settings
  • A value of zero for duration is now accepted in all functions, including setup(). E.g., zenscroll.toY(200, 0)
  • scrollTo() does not return the calculated target vertical position any more
  • Internal refactoring

3.3.0

20 Nov 21:32
Compare
Choose a tag to compare
  • Support for Back and Forward buttons on local links
  • Animation on Back and Forward buttons in browsers that support history.scrollRestoration (currently Chrome, Firefox & Opera)
  • Fixes #24

3.2.3

23 Oct 09:09
Compare
Choose a tag to compare

Fix zenscroll.moving() not returning true when scroll is in progress

3.2.2

21 Aug 21:28
Compare
Choose a tag to compare

Fix broken minified version.

3.2.1

07 Aug 12:51
Compare
Choose a tag to compare
  • Change how container DIVs are handled: they now must have their position CSS attribute set to relative, absolute or fixed
  • Add better detection of non-browser environment
  • Improve code by being more expressive (better variable names and expressions)

3.1.0

08 May 19:18
Compare
Choose a tag to compare

Adds a callback option as last parameter on every scroll function. This is executed when the scrolling is finished.
This resolves #12

3.0.2

05 May 18:22
Compare
Choose a tag to compare
  • Fixes #11: now edgeOffset can be customized (earlier it was always
    9px)
  • Fix for inaccurate calculation of bottom edge when using intoView()
    (earlier twice the amount of edgeOffset was used at the bottom)
  • Fixes #9: Make sure it doesn’t throw an exception when called in a
    non-browser environment (e.g., server rendered React)