Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update last_scroll_height after the element was made sticky. #125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BigWhale
Copy link

@BigWhale BigWhale commented Sep 1, 2015

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.

@Grafikart
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants