leafo/sticky-kit

[Chrome 56] Infinite looping on "sticky_kit:stick"

Closed this issue ยท 10 comments

Hello,

In the new version of Chrome, "sticky_kit:stick" event is triggered endlessly.

I'm having trouble with chrome 56. Several pages keep scrolling down w/o doing something.
Is there a workaround? i noticed 'position: sticky' is back in 56: https://developers.google.com/web/updates/2017/01/nic56

This is fixed by pull request #218

Awesome, fixed the issue. Thx for the quick response!

Hope this P.R will merge soon.

It seems that this issue also causes "phantom scrolling" on the page, where the sticky nav will cause the scroll position on the page to "float". I've tried updating to the version in pull request #218 but it still appears to be happening. Any ideas?

Would it be possible to get an updated minified JS file with this fix?

Yeah, the phantom scrolling is gone with this: https://raw.githubusercontent.com/jsit/sticky-kit/669aaa40abb91b8cf693b44a6b23c878c14e5ca6/dist/sticky-kit.js

But it isn't a fix for the script.

Thanks @Dieterdw it seems to be working fine now! Any idea what BCB happened in Chrome that caused this bug?

@RenaudParis I gave @Dieterdw 's version a shot and I'm still having an issue with phantom scrolling when the browser is zoomed to 90%.

@evanart I got it from #218