motion
motion copied to clipboard
[BUG] scroll progress is negative in reverse directions
Repro: https://codesandbox.io/p/sandbox/y76dz6
In the following scenarios, the scroll progress value is negative:
-
flex: column-reverse -
flex: row-reverse -
writing-mode: vertical-rl
4. Steps to reproduce
Steps to reproduce the behavior:
- Go to https://codesandbox.io/p/sandbox/y76dz6
- Scroll all 3 boxes
- See scroll value is negative
5. Expected behavior
Doc says the value should be between (0, 1).
6. Video or screenshots
7. Environment details
I was able to repro in Chrome, Safari and Firefox.