Skip to content
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

iOS Mobile Container Scrolling Bug #120

Open
gitsitgo opened this issue Oct 18, 2017 · 0 comments
Open

iOS Mobile Container Scrolling Bug #120

gitsitgo opened this issue Oct 18, 2017 · 0 comments

Comments

@gitsitgo
Copy link

On Mobile only on iOS devices, the site overlay fixed div does not block the scrolling of the container. The result is that the menu (if longer than the device viewport height) cannot scroll properly, and the page itself scrolls instead. This is a bug on the OS side I think...

You can try your demo site on an iPad or iPhone, the container page keeps scrolling even after the menu is opened where as android it blocks the touch event. A quick but nasty solution I found was here.

So for example, on your demo site I run code like:
$('.site-overlay').on('touchmove', function(e){ e.preventDefault(); });
and then it works properly. Not saying it is the proper solution, but if you have any ideas let me know.

Thanks!

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

1 participant