Add "swipeAnywhere" attribute - #45
Conversation
This allows a drawer to be opened by swiping in the middle of the screen instead of just the edges. Mobile Safari sends the browser back or forward on swipes originating from the edge of the screen, making it difficult if not impossible to open a drawer.
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://cla.developers.google.com/. If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check the information on your CLA or see this help article on setting the email on your git commits. Once you've done that, please reply here to let us know. If you signed the CLA as a corporation, please let us know the company's name. |
|
I filled out the CLA for myself, thanks. On Monday, January 12, 2015, googlebot notifications@github.com wrote:
Seth |
|
CLAs look good, thanks! |
|
This could be neat to support. Do you forsee any issues with landing swipe support for this use-case, @frankiefu? |
|
I like the idea, and I think it could be pulled out into a mixin (in 0.8 land) to allow other elements to understand similar gestures. iOS has a UIGestureRecognizer class for encapsulating the logic to know when a gesture has happened. The |
|
|
This allows a drawer to be opened by swiping in the middle of the screen instead of just the edges.
Mobile Safari sends the browser back or forward on swipes originating from the edge of the screen, making it difficult if not impossible to open a drawer.