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

Fix navigation bar and extension view hiding suddenly #22

Merged
merged 1 commit into from
Jan 19, 2016
Merged

Fix navigation bar and extension view hiding suddenly #22

merged 1 commit into from
Jan 19, 2016

Conversation

felipowsky
Copy link
Contributor

Right after a small pan gesture that wasn't enough to hide the navigation bar and the extension view, if pan gesture is fired again the navigation and the extension hide suddenly.

I noticed this bug happening more frequently with an extension view but I think it's possible to simulate it in other scenarios.

Here an example:
nav_bug

Fixed it by resetting the previousYOffset at handleScrollingEnded to NaN.

Here's the expected result:
nav_fix

tristanhimmelman added a commit that referenced this pull request Jan 19, 2016
Fix navigation bar and extension view hiding suddenly
@tristanhimmelman tristanhimmelman merged commit 5c3bcb1 into tristanhimmelman:master Jan 19, 2016
@tristanhimmelman
Copy link
Owner

Thanks @felipowsky !

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