1
0
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:
David Burhans 2020-06-17 19:35:02 -05:00
parent 2d4a67aa11
commit 60baf4476f

View File

@ -316,6 +316,7 @@ export class ClickDetector {
// Ignore right clicks
this.rightClick.dispatch(position, event);
this.cancelled = true;
this.clickDownPosition = null;
return;
}
}