From 3e8734eefba56862eafc581e0f3cc4cc06a83198 Mon Sep 17 00:00:00 2001 From: Peter Fajdiga Date: Sun, 10 Dec 2023 08:08:10 +0100 Subject: [PATCH] Desktop.scrollToCenterRange: force scroll --- src/layout/Desktop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/Desktop.ts b/src/layout/Desktop.ts index 6bc8188..d361309 100644 --- a/src/layout/Desktop.ts +++ b/src/layout/Desktop.ts @@ -89,7 +89,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 autoAdjustScroll() {