1. Describe the bug
When using useScroll target option with an element that has a fixed height (1000px for example), the scroll progress immediately jumps to 1.
After this, when I scroll down the progress goes from 1 to 0 and when going up from 0 to 1.
If I apply a height of 100vh then this doesn't happen.
2. IMPORTANT: Provide a CodeSandbox reproduction of the bug
https://codesandbox.io/p/devbox/3lj26q
3. Steps to reproduce
Steps to reproduce the behavior:
- Go to https://codesandbox.io/p/devbox/3lj26q
- Open console
- Load the page
- See progress log
4. Expected behavior
I'd expect that it behaves the same weather is a fixed height or vh height