-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Scrolling breaks when you scroll on header #138
Comments
I do have an iPhone5 and I did not encounter this kind of behavior for now. I know that there have been numerous issues with the What is your exact iOS version? Do you encounter this in the regular Safari Mobile, with a full screen shortcut or inside a native container (like cordova)? |
@mgcrea Thanks for the prompt response. I'm on iOS 6.0.2 in regular Safari Mobile, though I experienced the same with an "add to homescreen" shortcut. Steps to reproduce:
|
@timwis I can confirm the bug, however I am not sure if ratchet can do anything about it. You could check/try https://github.com/joelambert/ScrollFix and/or http://scrollability.com/
Damn, it's about time this scrolling issue gets fixed for mobile html apps. |
Thanks. I just tried both of those scroll fixers, doing the same process, and got the same bug. Oddly enough, jQuery Mobile works fine, even with the fixed header. |
From http://stackoverflow.com/questions/7798201/document-ontouchmove-and-scrolling-on-ios-5
might be worth a try. |
Hm, didn't seem to have an effect. It seems like the only library that doesn't give me this bug is iScroll. Does this mean that every app built using ratchet that has a fixed-position header will have this bug? |
Interesting, if I revert it to a plain old fixed position header by disabling
The only thing is the Safari address bar hangs for a couple seconds, and the header is invisible until it disappears. |
In case anyone else gets here via searching, here's the CSS fix I use to revert to normal scrolling with a fixed header: |
@timwis 's solution works great. |
Forgive me if this is a known issue - I tried searching but couldn't find it.
I really look forward to using ratchet as an alternative to jQuery Mobile, but I seem to be having a major issue scrolling on my iPhone 5. The initial scrolling works fine, but if I drag the header, as if to scroll it down, that essentially breaks scrolling in the app until I refresh it. It starts scrolling the whole app instead of just the content area.
I've tried this on (1) my own basic ratchet page, (2) ratchet's dist/template.html page, and (3) junior's example, and all seem to have this issue. Am I doing something wrong or is this a known issue?
Thanks
The text was updated successfully, but these errors were encountered: