Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was 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

Description

@yoav-zibin

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions