Add comment to onContextMenu

This commit is contained in:
Matt Kleinsmith 2024-07-16 09:22:36 -07:00
parent 3ece2f5aea
commit d9bc5fcfcc

View file

@ -260,6 +260,9 @@ class RecordActionTool implements RecorderTool {
}
onContextMenu(event: MouseEvent) {
// the 'contextmenu' event is triggered by a right-click or equivalent action,
// and it prevents the click event from firing for that action, so we always
// convert 'contextmenu' into a right-click.
if (this._shouldIgnoreMouseEvent(event))
return;
if (this._actionInProgress(event))