Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespacing two-hand support #14

Open
0x-r4bbit opened this issue Nov 7, 2013 · 7 comments
Open

Namespacing two-hand support #14

0x-r4bbit opened this issue Nov 7, 2013 · 7 comments
Labels
Milestone

Comments

@0x-r4bbit
Copy link
Contributor

I dunno how this would work yet, but when taking a look at the currently supported directives, they only support generic gestures which aren't capable of for example two-hand motions right?

I wonder if we should introduce directives for some two-handed action and if so, should we introduce a proper namespace for this? So something like:

<ANY leap-two-hands-swipe-left></ANY>

This would be a cool thing if you just want to get something with two hand support down the road. However, the leap controller is also capable of tracking more then two hands. So maybe we should also find a way to react on some kind of gesture with some amount of hands.

Any thoughts @robinboehm ?

@robinboehm
Copy link
Contributor

I've thought about this many times.
Should we generate directives for a n*m combination?
Feels not so good, or?

Also you are able to get the event

<ANY leap-swipe-left="fn($gesture)"></ANY>
$scope.fn = function($gesture){ 
... // do some checks for hands, speed, so on
}

Another idea:

It would be cool to provide some generic listener concept/directive.
Maybe with an simple DSL?

<ANY leap-react-with="fn() on ( gesture.swipe.left && event.hands == 2 )></ANY>

Just an idea ... I'm not really in with it, just want to share that with you.
Feels also not so good for now ... but lets talk about it... :)

@0x-r4bbit
Copy link
Contributor Author

@robinboehm I think we should start a hangout and discuss such things.

@simalexan
Copy link

Hello guys,
as the controller has finally arrived, will specify the necessary gestures for the Google Maps showcase for Angular-Leap.

Basic functionality for it should contain six use cases:

Move the map to:

  1. Left (single hand - swipe left)
  2. Right (single hand - swipe right)
  3. Up (single hand - swipe up)
  4. Down (single hand - swipe down)

Zoom:
5. In (two hands - move both hands away from each other)
6. Out (two hands - move both hands toward each other)

Later on, it would be nice to have a pointing gesture, so that the user can set starting and ending location in order to get directions. As said before, I would definitely spend some time on this.

@0x-r4bbit
Copy link
Contributor Author

@simalexan Wouldn't it be better to say a user can zoom in/out with a natural pinch/zoom? We can recognize fingers as well :) This would also be a very good place for a reusable directive.

@simalexan
Copy link

You are right, I completely forgot about that. I couldn't agree more. :)
Users are already used to it on their mobile devices. Nice

@0x-r4bbit
Copy link
Contributor Author

@simalexan 👍 yupp

@robinboehm
Copy link
Contributor

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants