-
Notifications
You must be signed in to change notification settings - Fork 41
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
Feature: Make Bottom Sheet non-dismissible by swipe down #49
Comments
If you want to disable swipe there is a Line 116 in b2b902e
If you want to allow swipe but ignore anchor changes you can return false in the Line 572 in b2b902e
|
Won't this disable swiping the sheet completely? I want to only disable dismissing the sheet by swipe down, but I want to be able to swipe the sheet between different detents/heights |
@alexzhirkevich Also i just tested sheetSwipeEnabled = false , using 2 detente Medium and Large and it doesn’t seem to disable swiping at all |
Then you need to return false for the Hidden state only in confirmValueChange lambda |
@alexzhirkevich I suppose this works, however i was wondering if there was a way to completely stop the sheet from sliding down when it reaches a certain detent. Returning false in the confirmvaluechange block will allow swiping down a bit then bouncing back to the original state, when what i’m looking for is to completely block the downward swipe gesture. |
Unfortunately no. You can only disable it completely when it reaches some state. You can't limit swipe by minimum detent |
It would be great if there were an option for disabling any dismissal of the bottom sheet by swiping it down
The text was updated successfully, but these errors were encountered: