slideout
slideout copied to clipboard
Scroll event doesn't detect scroll on descendants
If the scroll container for the page's content is within the panel, for example, instead of the body, then the listener for scroll on the document doesn't fire, and we don't accurately detect the user's intent to scroll. It seems we could provide an optional scroll container, or use detection of dif_y to prevent erroneous triggering of slideout menu's when scrolling.
Following up on this, it seems like the changes in this PR would probably be a more resilient approach: https://github.com/Mango/slideout/pull/73/files