From a4cda7db141bc90271cd732cfe36ceee30ac0a9f Mon Sep 17 00:00:00 2001 From: SteVen Batten Date: Fri, 14 Dec 2018 12:49:09 -0800 Subject: [PATCH] only dismiss editor context menu when scrollTop has changed --- src/vs/editor/contrib/contextmenu/contextmenu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/editor/contrib/contextmenu/contextmenu.ts b/src/vs/editor/contrib/contextmenu/contextmenu.ts index 7e4c3823b3fd1..d38634e75cfc5 100644 --- a/src/vs/editor/contrib/contextmenu/contextmenu.ts +++ b/src/vs/editor/contrib/contextmenu/contextmenu.ts @@ -46,7 +46,7 @@ export class ContextMenuController implements IEditorContribution { this._toDispose.push(this._editor.onContextMenu((e: IEditorMouseEvent) => this._onContextMenu(e))); this._toDispose.push(this._editor.onDidScrollChange((e: IScrollEvent) => { - if (this._contextMenuIsBeingShownCount > 0) { + if (this._contextMenuIsBeingShownCount > 0 && e.scrollTopChanged) { this._contextViewService.hideContextView(); } }));