Skip to content

Releases: manifoldco/react-scroll-agent

☄️ The “skip-ahead” version

Choose a tag to compare

@drwpow drwpow released this 19 Oct 23:16
e84d810

🐛 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

Choose a tag to compare

@drwpow drwpow released this 20 Aug 14:24

🐛 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

Choose a tag to compare

@drwpow drwpow released this 10 Aug 20:35

🐛 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

Choose a tag to compare

@drwpow drwpow released this 06 Aug 00:50

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

Choose a tag to compare

@drwpow drwpow released this 06 Aug 00:26

First version of react-scroll-agent