Desktop.scrollToCenterRange: force scroll
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user