Skip to content

Elements disappear on iphone #242

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

Open
bj-mcduck opened this issue Nov 10, 2014 · 3 comments
Open

Elements disappear on iphone #242

bj-mcduck opened this issue Nov 10, 2014 · 3 comments

Comments

@bj-mcduck
Copy link

I have an iphone 5 running 8.0.2. We're using snapjs and ratchet.
When our content is long enough to be scrollable, everything appears as expected; when our content changes, and is not longer than the viewing area, all the elements disappear.

This appears to be something to do with -webkit-overflow-scrolling, I notice that both snapjs and ratchet use it for their content areas. Not sure if there is a problem with them being double implemented.

I created a jsbin to illustrate: http://jsbin.com/yeficiyeca/2
Currently when removing some content in this example, the footer disappears.
But on our site it's all the content in the content area.

@bj-mcduck
Copy link
Author

We are also using ember, so I'm not sure if it has something to do with all the content within the .snap-content section being loaded/changed asynchronously.

@LavaRiddle
Copy link

Quite a while later after this issue was opened. Casting your mind back @brandonjmckay did you get manage to resolve this issue. Experiencing the same thing here on iOS devices only.

@esitarz
Copy link

esitarz commented Jul 30, 2019

Ran into a similar issue on portrait tablet where <snap-content> hid everything on my screen. I could rotate my iPad landscape, then BACK to portrait and it would magically appear. Narrowed the culprit down to this declaration:

.snap-content, .snap-drawer, .x-snap-drawer, [data-snap-drawer],
[snap-drawer], [snap\:drawer], [x-snap-drawer], snap-drawer {
     overflow: auto;
     -webkit-overflow-scrolling: touch;
     -moz-overflow-scrolling: touch;
     -o-overflow-scrolling: touch;
}

I ended up writing a media query to override to overflow: visible; on tablet/mobile.

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

No branches or pull requests

3 participants