somewebmedia / hc-offcanvas-nav

JavaScript library for creating toggled off-canvas multi-level navigations, allowing endless nesting of submenu elements, supporting swipe gestures, keyboard interactions and ARIA attributes.
https://somewebmedia.github.io/hc-offcanvas-nav/
MIT License
336 stars 82 forks source link

Disable swipe gesture when specific elements are being touched #50

Closed Aurugorn closed 3 years ago

Aurugorn commented 3 years ago

Awesome plugin, it works great.

Currently the menu is always opening and closing when you swipe gesture from the edge of your mobile. We have a slider element on our page which is full width and whenever we swipe this slider from left to right it causes the menu to open. How do we prevent the menu from opening when we slide the slider?

somewebmedia commented 3 years ago

Hi, thanks :) Just set swipeGestures: false