Skip to content

Commit

Permalink
Destkop.scrollCenterRange: force scroll (resolves #35)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfajdiga committed Oct 19, 2024
1 parent 66bc142 commit fb1047c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/layout/Desktop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fb1047c

Please sign in to comment.