googlearchive / polymer-gestures

84 stars 27 forks source link

All involved pointers should be included in the event #39

Open dfreedm opened 10 years ago

dfreedm commented 10 years ago

Copied from https://github.com/Polymer/PointerGestures/issues/38

@joelrich

I want to register a hold and a pinch handler for the same element. However, the hold event should not be processed if the user actually wants to resize the element by pinching. Therefore, it would be very useful to be able to query all the target pointers (similar to TouchEvent.targetTouches) from the hold event to ignore it if more than one finger is currently on the target element.

To be more general, I think most of the events should include properties similar to touches, targetTouches and changedTouches. This makes even more sense for events like pinch and rotate where always multiple pointers are involved.