Skip to content

Commit

Permalink
Merge branch 'jurreantonisse-feature/disable-multi-touch'
Browse files Browse the repository at this point in the history
  • Loading branch information
szimek committed Nov 7, 2015
2 parents 48fc0b2 + 32c4269 commit 2033858
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/signature_pad.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,17 @@ var SignaturePad = (function (document) {
};

this._handleTouchStart = function (event) {
var touch = event.changedTouches[0];
self._strokeBegin(touch);
if (event.targetTouches.length == 1) {
var touch = event.changedTouches[0];
self._strokeBegin(touch);
}
};

this._handleTouchMove = function (event) {
// Prevent scrolling.
event.preventDefault();

var touch = event.changedTouches[0];
var touch = event.targetTouches[0];
self._strokeUpdate(touch);
};

Expand Down

0 comments on commit 2033858

Please sign in to comment.