Revert "Desktop.scrollToCenterRange: force scroll"

This reverts commit dda63d68cde58c7f4a7162b11a2fd614365d36ff.
This commit is contained in:
Peter Fajdiga
2023-12-16 09:31:06 +01:00
parent 61db5ca69f
commit 05ffe0895e

View File

@@ -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), true);
this.adjustScroll(Math.round(windowCenter - screenCenter), false);
}
public autoAdjustScroll() {