mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
clear ClickDetector.clickDownPosition on right-click to prevent detecting subsequent left-clicks as double-clicks
This commit is contained in:
@@ -316,6 +316,7 @@ export class ClickDetector {
|
||||
// Ignore right clicks
|
||||
this.rightClick.dispatch(position, event);
|
||||
this.cancelled = true;
|
||||
this.clickDownPosition = null;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user