-
Notifications
You must be signed in to change notification settings - Fork 518
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
unstick not called if element is origianlly flush with top of page #110
Comments
I'm also seeing this issue. I would love to see this debugged in the script, rather than having to hack around it in the design. |
So far my simple fix is to move it 1px from the top of the screen and mask the gap with box shadow. This then triggers normal behaviour. Depends on design though #accidentalflatdesignwin. Is your solution similar? |
mneuhaus
pushed a commit
to mneuhaus/sticky-kit
that referenced
this issue
Jul 22, 2015
Same problem, #117 fixes it for me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have my menu bar that is the first element within the body and flush with the top of the viewport.
Scrolling down the page activates the sticky
But scrolling back up to the top does not unstick the element.
Usually this wouldn't be a problem as the element is exactly where it would be (except fixed) but i have some other behaviour that relies on the unstick element to change the position and size of other elements.
I can hack fix the issue by giving the body a 1px top margin.
Note: Safari's elastic scrolling strangely fixes the issue. I would wager because Safari can report scroll values in the negative.
The text was updated successfully, but these errors were encountered: