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 can I disable slide to open? #8

Open
JungMinHur opened this issue Jun 5, 2020 · 7 comments
Open

how can I disable slide to open? #8

JungMinHur opened this issue Jun 5, 2020 · 7 comments

Comments

@JungMinHur
Copy link

No description provided.

@rigor789
Copy link
Member

rigor789 commented Jun 6, 2020

You can set canSwipeOpen to false to disable it:

canSwipeOpen: true,

For example to disable swipe to open for the left drawer:

// in the drawer config
{
  left: {
    canSwipeOpen: false
  }
}

@JungMinHur
Copy link
Author

Thanks for your apply!!

is there a way to disable all swipe actions? not just open

@rigor789
Copy link
Member

rigor789 commented Jun 8, 2020

What do you mean exactly? Completely disable user interaction?

@JungMinHur
Copy link
Author

yes I mean, completely block swipe actions to open and close

@gravataLonga
Copy link
Contributor

as far i can tell, you must provider false to each side. {left: {canSwipeOpen: false}, top: {canSwipeOpen: false}, right: {canSwipeOpen: false}, bottom: {canSwipeOpen: false}}

@JungMinHur
Copy link
Author

yep! I know how to disable swipe open, but I want to know how to disable close too. It seems that even if I set {canSwipeOpen: false} swipe to close is still working!

@rigor789
Copy link
Member

rigor789 commented Jun 23, 2020

There's no way right now - but you could easily implement a static "drawer" with GridLayout+animate yourself, using this is pointless if you want to disable everything - since all this package does is add the gesture handling, and the slot handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants