cferdinandi/smooth-scroll

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

Closed this issue · 2 comments

albi commented

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

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.

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.