From fb1047c8ba9a4699f20cac755e1ef0d18ee3350e Mon Sep 17 00:00:00 2001 From: Peter Fajdiga Date: Sat, 19 Oct 2024 17:16:14 +0200 Subject: [PATCH] Destkop.scrollCenterRange: force scroll (resolves #35) --- src/lib/layout/Desktop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/layout/Desktop.ts b/src/lib/layout/Desktop.ts index c033a12..7378553 100644 --- a/src/lib/layout/Desktop.ts +++ b/src/lib/layout/Desktop.ts @@ -75,7 +75,7 @@ class Desktop { public scrollCenterRange(range: Desktop.Range) { const windowCenter = range.getLeft() + range.getWidth() / 2; const screenCenter = this.scrollX + this.tilingArea.width / 2; - this.adjustScroll(Math.round(windowCenter - screenCenter), false); + this.adjustScroll(Math.round(windowCenter - screenCenter), true); } public scrollCenterVisible(focusedColumn: Column) {