Releases: manifoldco/react-scroll-agent
Releases · manifoldco/react-scroll-agent
☄️ The “skip-ahead” version
🐛 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
🐛 Bugfixes
- The calculations were too complicated for
threshold="center"
andthreshold="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
to200ms
, 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
🐛 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
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