diff --git a/src/components/App.tsx b/src/components/App.tsx index ffa5997c..95ab228d 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -840,10 +840,12 @@ export class App extends React.Component { this.canvas, ); this.savePointer(pointerCoords); - gesture.pointers.set(event.pointerId, { - x: event.clientX, - y: event.clientY, - }); + if (gesture.pointers.has(event.pointerId)) { + gesture.pointers.set(event.pointerId, { + x: event.clientX, + y: event.clientY, + }); + } if (gesture.pointers.size === 2) { const center = getCenter(gesture.pointers);