dollarshaveclub / stickybits

Stickybits is a lightweight alternative to `position: sticky` polyfills 🍬
https://github.com/yowainwright/stickybits
MIT License
2.19k stars 167 forks source link

Sticky class removed too early #578

Open muuvmuuv opened 4 years ago

muuvmuuv commented 4 years ago

I can't help myself but I don't get it working properly. I have added stickybits to stick and element at the top that is inside a 100vh container with overflow-y:scroll. But it seems it detects the actual height wrong of the inner scrollable container.

Here is a working example:https://jsfiddle.net/muuvmuuv/fj26hsey/3/

linnea commented 4 years ago

I also have this issue, it seems to be a problem when using useStickyClasses and any combination of your own custom stickyChangeClass/stickyClass/stuckClass

anhskohbo commented 4 years ago

Same issues here. Use v3.6.8 work like expected!