leafo/sticky-kit

Ugly jumps when scrolling. How to calculate sticky/un-sticky points BEFORE scrolling?

Opened this issue · 0 comments

We have several sections (rows) that get stuck and un-stuck as you scroll:

...however in FF and IE (not so in Chrome), the scrolling isn't smooth all the time, and it often "jumps" instead of continuously scrolling, giving an ugly sensation.

After some investigation, I noticed that when scrolling up, or after a complete "jumpy" scroll has been performed down to the bottom of the page, the uncool scrolling stops, and you can scroll smoothly all across the page.

This makes me wonder if the jumping happens because the browser is doing some kind of calculation?

How could we do so the browser calculates where it needs to stick/unstick before the user scrolls?
Is there some workaround this?

Many thanks for any input,