You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
BottomSheet can be swiped down (to close it),
but SideNav can't be swiped left/right (to close it).
In all the google apps you can swipe left the left-nav to close it,
so that should be the default behavior.
Note that the SideNav can be locked-open, e.g.,
md-is-locked-open="$mdMedia('gt-xs')"
and when it's locked open then it shouldn't be swippable.
That's why I don't have an easy workaround, because adding:
md-swipe-left="onSwipeLeft()"
will always make it swippable.
Any suggestions for a workaround?
Splaktar
changed the title
SideNav should be swippable (by default), so swipe left/right will close it
SideNav should be swipeable (by default), so swipe left/right will close it
Mar 28, 2019
Compare the SideNav and the BottomSheet:
https://material.angularjs.org/latest/demo/sidenav
https://material.angularjs.org/latest/demo/bottomSheet
BottomSheet can be swiped down (to close it),
but SideNav can't be swiped left/right (to close it).
In all the google apps you can swipe left the left-nav to close it,
so that should be the default behavior.
Note that the SideNav can be locked-open, e.g.,
md-is-locked-open="$mdMedia('gt-xs')"
and when it's locked open then it shouldn't be swippable.
That's why I don't have an easy workaround, because adding:
md-swipe-left="onSwipeLeft()"
will always make it swippable.
Any suggestions for a workaround?
(BTW, the swipe demo on https://material.angularjs.org/latest/demo/swipe doesn't work for me, neither on desktop nor with in chrome mobile emulation.)
The text was updated successfully, but these errors were encountered: