From 81c5fd49880e508dacd2e03edeab7e74e80c0ff7 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Fri, 6 Sep 2019 09:27:20 -0700 Subject: [PATCH] Don't execute move to cell when the user has scrolled up Fixes #2401 --- src/browser/services/SelectionService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/services/SelectionService.ts b/src/browser/services/SelectionService.ts index 90c85ecd..2efb095d 100644 --- a/src/browser/services/SelectionService.ts +++ b/src/browser/services/SelectionService.ts @@ -664,7 +664,7 @@ export class SelectionService implements ISelectionService { this._removeMouseDownListeners(); if (this.selectionText.length <= 1 && timeElapsed < ALT_CLICK_MOVE_CURSOR_TIME) { - if (event.altKey) { + if (event.altKey && this._bufferService.buffer.ybase === this._bufferService.buffer.ydisp) { const coordinates = this._mouseService.getCoords( event, this._element,