We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using pinStart the header jumps up whenever it hits unfixed when the scrollDirection="up" and currentScrollY < pinStart.
pinStart
unfixed
scrollDirection="up"
currentScrollY < pinStart
I can fix this by amending line 18 in shouldUpdate.js:
shouldUpdate.js
else if (currentScrollY <= props.pinStart && state.state !== 'unfixed' && ['pinned', 'unfixed'].indexOf(state.state) < 0)
And then making the default state pinned.
pinned
But I guess that is not meant to be like this?
The text was updated successfully, but these errors were encountered:
Demo here: https://codesandbox.io/s/xrzpy0lmqq
Sorry, something went wrong.
No branches or pull requests
When using
pinStart
the header jumps up whenever it hitsunfixed
when thescrollDirection="up"
andcurrentScrollY < pinStart
.I can fix this by amending line 18 in
shouldUpdate.js
:And then making the default state
pinned
.But I guess that is not meant to be like this?
The text was updated successfully, but these errors were encountered: