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
Broken on iOS #2
Comments
Note to myself for later: probably has to do with position: fixed on iOS not working very well. |
The catch: don't go for native scrolling if you want iOS issue fixed. Try emulated scrolling what iScroll did before iOS5 came out. When inertia scrolling kicks in (the moment your release your touch and page continue its momentum scroll), any offset, scrollTop information is not updated. You are out of luck trying to fit any positioning calculation based on outdated offset/position. At the moment, there is no solution for this until Apple fix it. |
Gotcha. I'll keep that in mind when I work on the patch for it (either later tonight or tomorrow for sure). Thanks for the direction! |
Yes I've closed out the FF issue and have been looking into this issue as well. You're quite right Freddy. There seems to be nothing to be done if I want to use position: fixed on iOS. The biggest problem with Balloon on iOS seems to be the fact that there are no updated values for scrollTop or pageYOffset until the scroll has come to a complete stop (I've tested this by doing short scrolls and everything is fine except for long scrolling and/or scrolling with inertia). I guess I will either wait on Apple to get this shit fixed or write a separate balloon-mobile plugin. :-/ |
I see the dates are old here, but sending a bump your way because this would be nice. Could probably use some CSS to fix it since the year is now 2016 :D -Garrett |
Hey @grimmdude! Unfortunately I still do not believe there's a solid/surefire fix for this. I actually did something much more ambitious for the last startup I worked at (Upthere), but ran into the same issue in 2014. I was working on doing infinitely-stackable floating headers and ran into the same jitter issues in Safari. The reason this happens is because code like this relies on the Here is the StackOverflow question I opened in 2014: http://stackoverflow.com/questions/23990069/absolute-positioned-floating-header-jitters-in-safari The solution is the https://drafts.csswg.org/css-position/#sticky-positioning The property will become available in Chrome in the next version once it's stable (52): http://caniuse.com/#feat=css-sticky Perhaps what I could do is try to use |
Hi @vhmth, Thanks for the quick response, but no need to expedite this; my project is not pressing (that is a good idea though about falling back to -Garrett |
Definitely Garret. Appreciate the good vibes. Feel free to bump me again if I haven't gotten to this and you're looking to use it, but I'll tentatively work on it this weekend. |
Just so ya know I wasn't blowing you off. :-) |
I know this is a problem. Will be working on it.
The text was updated successfully, but these errors were encountered: