Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Going to top via the iPhone scroll to top feature by pressing the upper bar of Safari breaks the plugin… #45

Closed
albi opened this issue Mar 6, 2014 · 2 comments
Labels

Comments

@albi
Copy link

albi commented Mar 6, 2014

After going to top via this feature my menu won't work anymore.

@cferdinandi
Copy link
Owner

Without a link to a demo, there's not much I can do here. I'm successfully using this on a site and haven't observed this issue.

@cferdinandi cferdinandi added the bug label Mar 7, 2014
cferdinandi pushed a commit that referenced this issue Mar 15, 2014
@cferdinandi
Copy link
Owner

Fixed with version 4.4! Here's what was happening: For some reason, after tapping the status bar to scroll to the top, iOS continues to report the window.pageYOffset value as 0. It's hacky, but the fix was to force a JS-based scroll to the top, reseting the pageYOffset value.

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

No branches or pull requests

2 participants