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

Expose gesture service as directives #829

Closed
mlynch opened this issue Mar 18, 2014 · 6 comments
Closed

Expose gesture service as directives #829

mlynch opened this issue Mar 18, 2014 · 6 comments
Assignees

Comments

@mlynch
Copy link
Contributor

mlynch commented Mar 18, 2014

It would be super cool to be able to expose a gesture handler to any element through a directive, something like this:

<profile on-drag="dragged(profile)" ng-repeat="profile in profiles">
</profile>

Not crucial but could be cool.

@rvanbaalen
Copy link

I agree! Great idea.

on-drag
on-swipe-up (-swipe-left -swipe-right)

...

on-two-finger-swipe-down
on-single-finger-swipe-down-and-two-finger-swipe-left

Ok now I'm losing it ;-)

@PatrickJS
Copy link

what about adding an event hash too?

<yolo ion-swipe="{
  'left': expression,
  'up': expression
}"></yolo>

@adamdbradley adamdbradley modified the milestones: 1.0.0-beta.3, 1.0.0-beta.2 Apr 30, 2014
@mlynch mlynch assigned adamdbradley and unassigned ajoslin Jun 10, 2014
@mlynch
Copy link
Contributor Author

mlynch commented Jun 11, 2014

<yolo>

@ajoslin
Copy link
Contributor

ajoslin commented Jun 11, 2014

<yolo erryday="motto">

@MehulATL
Copy link

💰

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 6, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants