negomi / react-burger-menu

:hamburger: An off-canvas sidebar component with a collection of effects and styles using CSS transitions and SVG path animations
http://negomi.github.io/react-burger-menu/
MIT License
5.05k stars 586 forks source link

Is there a way to swipe open menubar on mobile touch devices #299

Closed ashpreetbedi closed 4 years ago

ashpreetbedi commented 5 years ago

I would love to be able to open the sidebar with swiping left to right on mobile devices, is that possible?

Thanks! Ashpreet

negomi commented 5 years ago

No but I love that idea! I'll try to look into adding it at some point :)

ashpreetbedi commented 5 years ago

It would be a game changer :) Thank you for building react-burger-menu, I was able to get it to work and its so smooth!

heshamelmasry77 commented 5 years ago

yeah we really need this feature

kenfehling commented 5 years ago

Wouldn't swiping activate the back button behavior on mobile browsers though?

pashtet422 commented 5 years ago

i wanna this feature too!

tky5622 commented 5 years ago

I really need it !

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Stophface commented 1 year ago

This should be pretty straight forward with this library https://github.com/FormidableLabs/react-swipeable

Simply implement it here https://github.com/negomi/react-burger-menu/blob/main/src/menuFactory.js on the <div /> with the class bm-overlay.