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

How to swipe outside of the drawer to open/close? #360

Open
RickRyan26 opened this issue May 28, 2024 · 2 comments
Open

How to swipe outside of the drawer to open/close? #360

RickRyan26 opened this issue May 28, 2024 · 2 comments

Comments

@RickRyan26
Copy link

The ChatGPT mobile app has the most beautiful drawer functionality, and I'm trying to recreate that.

At any time the user can side swipe the chat or drawer area to open or close the drawer and shift the entire page layout.

My main hurdle is being able to swipe outside of the drawer while still being able to select what's beneath that outside swipeable area...

Does my entire layout need to be inside the drawer? With only half of it looking like the drawer? And without the drawer being allowed to fully close?

Any suggestion anyone reading this has would be fantastic.

Thank you!

@max-17
Copy link

max-17 commented Jun 4, 2024

check MUI swipable drawer

actually I also want to open this drawer with a swipe. I will try to create a fork with this functionality

@RickRyan26
Copy link
Author

@max-17 I haven't tried this yet but I think a horizontal CSS scroll snap on the layout solves my needs

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

2 participants