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
1 changed files with 1 additions and 0 deletions

View File

@ -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;
} }
} }