Closed
Description
Actual Behavior (bug)
state update is causing parallax to reset to initial after reaching endScroll.
An example for demo code can be found here
Expected Behavior
Expecting to prevent resetting the transformations done by react-scroll-parallax after endScroll position.
Steps to Reproduce the Problem
- Use the above code sandbox link. (Or create some parallax components and trigger some state update (i did it in onProgressChange))
- Scroll till the parallax completes ( scroll position = 460)
- See that the transformations are reset (on reaching scroll position 461)
Environment
- Framework: next-js
- Node Version: 14
- Platform: macOS
- Browser: Google Chrome 98.0.4758.109