sticky-kit icon indicating copy to clipboard operation
sticky-kit copied to clipboard

Update last_scroll_height after the element was made sticky.

Open BigWhale opened this issue 10 years ago • 1 comments

If the height of the element changes when it's made sticky it will cause the last_scroll_height !== doc.height() check fail and recalc() will be firing on every tick().

If last_scroll_height is updated right after the element is made sticky and the css class is attached to it, everything works as it should.

BigWhale avatar Sep 01 '15 13:09 BigWhale

This PR solves an issue with Chrome where sticky-kit blocked the scroll of my page (it should be merged)

Grafikart avatar Jul 07 '17 08:07 Grafikart