don't set pointer on pointerMove if not already present (#889)
This commit is contained in:
parent
3bf3d96d9f
commit
5dadbcdcd5
@ -840,10 +840,12 @@ export class App extends React.Component<any, AppState> {
|
|||||||
this.canvas,
|
this.canvas,
|
||||||
);
|
);
|
||||||
this.savePointer(pointerCoords);
|
this.savePointer(pointerCoords);
|
||||||
|
if (gesture.pointers.has(event.pointerId)) {
|
||||||
gesture.pointers.set(event.pointerId, {
|
gesture.pointers.set(event.pointerId, {
|
||||||
x: event.clientX,
|
x: event.clientX,
|
||||||
y: event.clientY,
|
y: event.clientY,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (gesture.pointers.size === 2) {
|
if (gesture.pointers.size === 2) {
|
||||||
const center = getCenter(gesture.pointers);
|
const center = getCenter(gesture.pointers);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user