You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When target element for useScroll uses translate, the translate is not taken into account when calculating target position. Can't see anything in the docs that should give me the impression that is impossible?
3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
(un)comment the translate and the scroll progress is the same, even tho element is closer to screen center:
2. Describe the bug
When
target
element foruseScroll
usestranslate,
thetranslate
is not taken into account when calculating target position. Can't see anything in the docs that should give me the impression that is impossible?3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
(un)comment the translate and the scroll progress is the same, even tho element is closer to screen center:
https://codesandbox.io/p/devbox/hczfww
4. Steps to reproduce
Steps to reproduce the behavior:
5. Expected behavior
A clear and concise description of what you expected to happen.
7. Environment details
Nextjs
The text was updated successfully, but these errors were encountered: