angular/angular.js — pull request #3198 by ethanli83 (2013-07-11 10:23:33+00:00)
Title: Fix issue with Jquery for ngMobile

Issue:
I found that the ngClick directive does not work with touch events dispatched by JQuery.
JQuery will wrap touch events, and touches can only be found on originalEvent.
The touch event handlers in ngClick directive are not using the originalEvent but event instead,
so the touches these handlers use, are 'undifined'.

Also, I found browsers are quite sensitive with touch, when I just tap on my touch screen,
the browser will dispatch 'touchstart', 'touchmove', and 'touchend'. Since the touch move handler
also reset status, I never get my click handler triggered.

Fix:
Check if event has an originalEvent property, and use it instead if it is found.
Also I make touch end handler triggers click handler if the distance between touch start and touch end,
is within MOVE_TOLERANCE.