emberjs-addons / ember-touch

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

Tap Gesture Recognizer: Allow easy retrieval of underlying touch event or minimally X/Y coordinates. #5

Closed LuisSala closed 12 years ago

LuisSala commented 13 years ago

It'd be good to be able to more easily access the underlying touch event (or touches array) in a tap gesture recognizer so that a developer can more easily retrieve things like the pageX / pageY coordinates.

Right now it requires: recognizer.getPath("touches.touches")[0].pageX

I don't know how/if this should be applied globally to all recognizers or only specific ones, so I'll let you decide the best approach. :)