Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

SideNav should be swipeable (by default), so swipe left/right will close it #8310

Closed
yoav-zibin opened this issue May 2, 2016 · 2 comments
Closed

Comments

@yoav-zibin
Copy link

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.)

@mckenzielong
Copy link
Contributor

Might be interested following in @devversion's PR: #6174

@devversion
Copy link
Member

Duplicate of #1591.

FYI: The PR is blocked by another PR.

@Splaktar 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
@angular angular locked as resolved and limited conversation to collaborators Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants