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

Layout broken in short viewport when changing scrollY #98

Open
MrGGTo opened this issue Dec 4, 2023 · 0 comments
Open

Layout broken in short viewport when changing scrollY #98

MrGGTo opened this issue Dec 4, 2023 · 0 comments

Comments

@MrGGTo
Copy link

MrGGTo commented Dec 4, 2023

I noticed a layout bug with the sticky box. The sticky box did not detect the scrollY change, breaking the layout as shown in the preview.

To reproduce this:

  1. Resize the window to let the sticky box's height > viewport's height.
  2. scroll above the sticky box (make sure to scroll out of the sticky zone)
  3. click on a anchor tag to trigger a change in scrollY
react-sticky-box.Full.Page.Example.-.Google.Chrome.2023-12-04.13-55-39.mp4

Could this be fixed? Thanks, this is a useful library

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