Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Use down event when calculating first track
Browse files Browse the repository at this point in the history
Touches fire touchstart and touchmove at the same time with no X/Y change
  • Loading branch information
dfreedm committed Jul 31, 2014
1 parent 65de911 commit 148b5fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/track.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@
// start tracking only if finger moves more than WIGGLE_THRESHOLD
if (move > this.WIGGLE_THRESHOLD) {
p.tracking = true;
this.fireTrack('trackstart', p.downEvent, p);
p.lastMoveEvent = p.downEvent;
this.fireTrack('trackstart', inEvent, p);
this.fireTrack('track', inEvent, p);
}
} else {
Expand Down

0 comments on commit 148b5fa

Please sign in to comment.