react-stickynode icon indicating copy to clipboard operation
react-stickynode copied to clipboard

On faster scroll, Sticky overflows other items

Open willslater opened this issue 5 years ago • 8 comments

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.

willslater avatar Dec 01 '20 10:12 willslater

same issue

Seventysevendays avatar Feb 02 '21 07:02 Seventysevendays

same issue as well

JohnRubado avatar Jul 20 '21 14:07 JohnRubado

Same Issue

AmmadKhanM avatar Dec 22 '21 11:12 AmmadKhanM

same issue

lak7 avatar Jul 29 '23 19:07 lak7

same issue

droplab avatar Jul 03 '24 09:07 droplab

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'

droplab avatar Jul 03 '24 09:07 droplab