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

Scrolling wrong panel #270

Open
cdukes opened this issue Jun 8, 2018 · 2 comments
Open

Scrolling wrong panel #270

cdukes opened this issue Jun 8, 2018 · 2 comments

Comments

@cdukes
Copy link

cdukes commented Jun 8, 2018

I'm trying to use this library, but it seems to sometimes scroll the main content panel, not the nav panel. This issue is present on the demo site.

To reproduce:

  1. Open https://slideout.js.org/ on mobile in the latest version of iOS Safari (I'm on 11.1)
  2. Make sure the window is shorter than the menu content. This is the case for me on an iPhone SE in landscape.
  3. Open the menu. Tap somewhere in the content area. Now try scrolling. The content will scroll instead of the menu, making the later menu items inaccessible. It's possible to regain focus on the menu by tapping carefully, but it's not simple.
@ouelletv
Copy link

Any solution to prevent this to happen?

@mikevalen
Copy link

For those still interested, a simple fix is to use https://github.com/willmcpo/body-scroll-lock

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