Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for multitouch over separate child elements. Fixes #600 #668
This fix requires hammerjs/simulator#2
The fix is based on recalculating targetTouches based on available touches. Only touches that correspond to observable element or to its child elements are marked as targetTouches.
It may be not the best place to check for touches (or naming of targetTouches should be changed) but because library heavily relies on targetTouches it was the easiest place to make the change.
Tests pass in Chrome 37, Firefox 32, Safari 7 (OS X).
Added 3 tests that cover following use-cases:
Fixed an older test by adding a target attribute to each touch.