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

On faster scroll, Sticky overflows other items #321

Open
willslater opened this issue Dec 1, 2020 · 6 comments
Open

On faster scroll, Sticky overflows other items #321

willslater opened this issue Dec 1, 2020 · 6 comments

Comments

@willslater
Copy link

I have a weird issue, maybe it is just my machine but I haven't seen this issue when adding sticky directly through css.

I have a sticky card which appears between 2 elements, it works when I slow scroll, but when I scroll faster (and by fast I mean just quicker than slow, not majorly fast) the Sticky container overshoots the top and bottom, then resets, almost like it takes a second to remove the sticky class.

Maybe I am missing a delay setting or something? Has anyone else experienced this. Its not a particularly resource intensive page that it should be that slow.

@Seventysevendays
Copy link

same issue

@JohnRubado
Copy link

same issue as well

@AmmadKhanM
Copy link

Same Issue

@lak7
Copy link

lak7 commented Jul 29, 2023

same issue

1 similar comment
@droplab
Copy link

droplab commented Jul 3, 2024

same issue

@droplab
Copy link

droplab commented Jul 3, 2024

It appears adding a className rule with position:sticky to the <Sticky ...> component fixes the issue. If you use tailwind, this will do the trick className='sticky'

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

6 participants