Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Feature request: Swipe on backdrop to close sidebar #125

Open
sawanm9000 opened this issue Oct 22, 2017 · 0 comments
Open

Feature request: Swipe on backdrop to close sidebar #125

sawanm9000 opened this issue Oct 22, 2017 · 0 comments

Comments

@sawanm9000
Copy link

sawanm9000 commented Oct 22, 2017

The sidebar can already be closed by clicking/tapping the backdrop right now but it's not very intuitive especially on mobile. Until swipe to pull/push is implemented (#1), this would be a good alternative. (See how it's done on Google search on mobile). "onmousedown" instead of "onClick" and "touchstart/ontouchstart" or "touchmove/ontouchmove".

Also: fade out the backdrop on close before disappearing - it's hard to animate when it just cease to exist in the DOM.

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

2 participants