Skip to content

Releases: manifoldco/react-scroll-agent

☄️ The “skip-ahead” version

19 Oct 23:16
e84d810
Compare
Choose a tag to compare

🐛 Bugfixes

  • Re-sets the final positioning calc function to fire back at 500ms after last detected change. Dunno; seemed to work better.

🦍 Major changes

  • Ships IIFE & ESM versions! The future starts here 💫

🐸 Minor changes

  • Uses Rollup for bundling, rather than pure Babel.
  • Bumps the version closer to v1.0 as I run out of ideas to improve on

Improve scroll calculation

20 Aug 14:24
Compare
Choose a tag to compare

🐛 Bugfixes

  • The calculations were too complicated for threshold="center" and threshold="bottom", and were simplified. In the process, a bug was fixed in calculation (on longer screens, center wasn’t correct).

🐸 Minor changes

  • The final firing was reduced from 500ms to 200ms, resulting in more responsive recalc. In the future, this should be investigated a bit further to find out exactly why the final frame doesn’t fire.

Height bugfix

10 Aug 20:35
Compare
Choose a tag to compare

🐛 Bugfixes

  • On longer pages, window.requestAnimationFrame() wouldn’t reliably fire after all the reflow worked out. This enables the component to re-fire after reflow completes, improving calculations.

🐸 Minor changes

  • Friendlier error message if you give a bad value to the selector prop

Positions

06 Aug 00:50
Compare
Choose a tag to compare

Major Changes

  • Exposed positions to render prop to allow for animated scrolling navs

Minor Changes

  • Code reduction

Bugfixes

  • Improved stability of current calc
  • Imperceptible performance enhancements
  • Fixed a bug where if the whole container was below view, current would return the last index

Alpha

06 Aug 00:26
Compare
Choose a tag to compare

First version of react-scroll-agent