Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollTo with a target outside the scrolling bounds and disableLerp on true messes up sticky elements #529

Open
psc-44 opened this issue Nov 16, 2023 · 0 comments

Comments

@psc-44
Copy link

psc-44 commented Nov 16, 2023

Calling the scrollTo function with a target outside the scrolling bounds and disableLerp on true messes up sticky elements. The sticky elements are not updated. It works when disableLerp is set to false.

To Reproduce

  1. Create a scrollable container (2000px high)
  2. Create a sticky element in that scrollable container
  3. Call the scrollTo function with a target outside the scrolling bounds (3000) and disableLerp on true
  4. The sticky element is not updated, only when the user scrolls by themselves.

Desktop:

  • OS: Windows 11
  • Browser: Chrome
  • Version: 4.1.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant