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

Commit

Permalink
Always make *some* chord in pinch
Browse files Browse the repository at this point in the history
Partial fix for jquery-archive/PEP#131 and #30
  • Loading branch information
dfreedm committed Mar 7, 2014
1 parent 0770ed3 commit f645ec4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pinch.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@
pointers.push(p);
});
var dist = 0;
var points = {};
// start with at least two pointers
var points = {a: pointers[0], b: pointers[1]};
var x, y, d;
for (var i = 0; i < pointers.length; i++) {
var a = pointers[i];
Expand Down

0 comments on commit f645ec4

Please sign in to comment.