slideout icon indicating copy to clipboard operation
slideout copied to clipboard

Scrolling wrong panel

Open cdukes opened this issue 6 years ago • 2 comments

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.

cdukes avatar Jun 08 '18 16:06 cdukes

Any solution to prevent this to happen?

ouelletv avatar Jan 10 '19 18:01 ouelletv

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

mikevalen avatar Jun 20 '19 22:06 mikevalen