mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
clear ClickDetector.clickDownPosition on right-click to prevent detecting subsequent left-clicks as double-clicks
This commit is contained in:
parent
2d4a67aa11
commit
60baf4476f
@ -316,6 +316,7 @@ export class ClickDetector {
|
|||||||
// Ignore right clicks
|
// Ignore right clicks
|
||||||
this.rightClick.dispatch(position, event);
|
this.rightClick.dispatch(position, event);
|
||||||
this.cancelled = true;
|
this.cancelled = true;
|
||||||
|
this.clickDownPosition = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user