sticky-kit
sticky-kit copied to clipboard
Update last_scroll_height after the element was made sticky.
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.
This PR solves an issue with Chrome where sticky-kit blocked the scroll of my page (it should be merged)