Skip to content

Commit

Permalink
Merge pull request #12 from romellem/fix/multi-touch
Browse files Browse the repository at this point in the history
Fix - Multi-touch (additional touches causing jumps)
  • Loading branch information
romellem authored Apr 2, 2020
2 parents ad64c6a + 0f242f7 commit 6b77d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/implosion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6b77d2a

Please sign in to comment.