Add comment to onContextMenu
This commit is contained in:
parent
3ece2f5aea
commit
d9bc5fcfcc
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue