Skip to content

Commit 6b77d2a

Browse files
authored
Merge pull request #12 from romellem/fix/multi-touch
Fix - Multi-touch (additional touches causing jumps)
2 parents ad64c6a + 0f242f7 commit 6b77d2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/implosion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export default class Implosion {
226226
*/
227227
function normalizeEvent(ev) {
228228
if (ev.type === 'touchmove' || ev.type === 'touchstart' || ev.type === 'touchend') {
229-
let touch = ev.targetTouches[0] || ev.changedTouches[0];
229+
let touch = ev.changedTouches[0];
230230
return {
231231
x: touch.clientX,
232232
y: touch.clientY,

0 commit comments

Comments
 (0)