From 0f242f76c7b0ed27c087c9f03f3f01df2e89261b Mon Sep 17 00:00:00 2001 From: romellem Date: Thu, 2 Apr 2020 10:01:45 -0500 Subject: [PATCH] Fixes multi-touch @see https://github.com/chrisbateman/impetus/pull/44 --- src/implosion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/implosion.js b/src/implosion.js index 25097a5..3913ddf 100644 --- a/src/implosion.js +++ b/src/implosion.js @@ -226,7 +226,7 @@ export default class Implosion { */ function normalizeEvent(ev) { if (ev.type === 'touchmove' || ev.type === 'touchstart' || ev.type === 'touchend') { - let touch = ev.targetTouches[0] || ev.changedTouches[0]; + let touch = ev.changedTouches[0]; return { x: touch.clientX, y: touch.clientY,