mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fix #44576
This commit is contained in:
parent
4d6291cd4a
commit
e4e3a1bd36
|
@ -185,16 +185,16 @@ export class PanelViewlet extends Viewlet {
|
|||
}
|
||||
|
||||
private showContextMenu(event: StandardMouseEvent): void {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
||||
for (const panelItem of this.panelItems) {
|
||||
// Do not show context menu if requested from inside panel views
|
||||
// Do not show context menu if target is coming from inside panel views
|
||||
if (isAncestor(event.target, panelItem.panel.element)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
||||
let anchor: { x: number, y: number } = { x: event.posx, y: event.posy };
|
||||
this.contextMenuService.showContextMenu({
|
||||
getAnchor: () => anchor,
|
||||
|
|
Loading…
Reference in a new issue