From 0149bef1282818b920214187b148f5148538963a Mon Sep 17 00:00:00 2001 From: Wes Johnston Date: Mon, 31 Mar 2014 21:12:55 -0700 Subject: [PATCH] Use jquery event rather than global window event --- wScratchPad.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wScratchPad.js b/wScratchPad.js index 2e8859c..8b0cfe2 100644 --- a/wScratchPad.js +++ b/wScratchPad.js @@ -163,9 +163,9 @@ bindMobile: function($el) { - $el.bind('touchstart touchmove touchend touchcancel', function () + $el.bind('touchstart touchmove touchend touchcancel', function (event) { - var touches = event.changedTouches, first = touches[0], type = ""; + var touches = event.originalEvent.changedTouches, first = touches[0], type = ""; switch (event.type) {