Skip to content

Commit

Permalink
I can't figure this out
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Dobryakov authored and Pavel Dobryakov committed Aug 31, 2019
1 parent 2043a4f commit 9ad0744
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1446,11 +1446,9 @@ canvas.addEventListener('touchstart', e => {
while (touches.length >= pointers.length)
pointers.push(new pointerPrototype());
for (let i = 0; i < touches.length; i++) {
let pointer = pointers[i + 1];
if (pointer.down) continue;
let posX = scaleByPixelRatio(touches[i].pageX);
let posY = scaleByPixelRatio(touches[i].pageY);
updatePointerDownData(pointer, touches[i].identifier, posX, posY);
updatePointerDownData(pointers[i + 1], touches[i].identifier, posX, posY);
}
});

Expand Down

0 comments on commit 9ad0744

Please sign in to comment.