Skip to content

Commit

Permalink
Fix a silly that broke things with touch input
Browse files Browse the repository at this point in the history
  • Loading branch information
taye committed Nov 21, 2014
1 parent dd0c76c commit c86b9df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -2379,7 +2379,7 @@
},

collectEventTargets: function (pointer, event, eventTarget, eventType) {
var pointerIndex = this.mouse? 0 : indexOf(this.pointerIds(getPointerId(pointer)));
var pointerIndex = this.mouse? 0 : indexOf(getPointerId(pointer));

// do not fire a tap event if the pointer was moved before being lifted
if (eventType === 'tap' && (this.pointerWasMoved
Expand Down Expand Up @@ -2426,7 +2426,7 @@
},

firePointers: function (pointer, event, targets, elements, eventType) {
var pointerIndex = this.mouse? 0 : indexOf(this.pointerIds(getPointerId(pointer))),
var pointerIndex = this.mouse? 0 : indexOf(getPointerId(pointer)),
pointerEvent = {},
i,
// for tap events
Expand Down

0 comments on commit c86b9df

Please sign in to comment.