emberjs-addons / ember-touch

A lightweight library for building and using touch gestures with Ember Applications
MIT License
182 stars 28 forks source link

SC.Gesture API should support manual trigger #7

Closed lukemelia closed 12 years ago

lukemelia commented 12 years ago

I'm attempting to implement a discrete tapHold event where I look for a touchStart, movement within a threshold, and no touchEnd before a given time threshold. If the time threshold passes, I want to trigger my tapHoldEnd event. Currently, the only nice mechanism to fire the event is by implementing shouldEnd, but that doesn't get called until touchEnd. There should be a mechanism to proactively trigger a discrete event.

lukemelia commented 12 years ago

In case it helps think this through, here is my attempt to implement tapHold on the current API. https://gist.github.com/7233de37f8aae7a47d3b

ppcano commented 12 years ago

Pull Request

ppcano commented 12 years ago

Closing it, TouchHoldGestureRecognizer has been included with the last merge.

Please, reopen it or create a new one if you are still experiencing any issues.