angular/angular.js — pull request #6330 by 2ix (2014-02-19 01:23:59+00:00)
Title: fix(ngClick): make ngTouch adhere to MOVE_TOLERANCE on click event

Plunker: http://jsfiddle.net/TvREd/

On Desktop if you swipe within the blue box and release, both the swipe's done function and click's done function are called together. This bug is also apparent on some mobile devices, for example wp8 that still call native `click` event handlers.

If you compare this Plunker on a Android Touch device you will notice the click's done function does not get called when swiped.

With this fix the click's done function is only called if within the MOVE_TOLERANCE amount, therefore the behaviour is consistent between mobile / pointer event mobile and desktop environments.