Desktop: fix unnecessary overscroll removing right margin on window close

This commit is contained in:
Peter Fajdiga
2023-08-21 23:48:11 +02:00
parent c4307e187f
commit d23c13c344

View File

@@ -42,9 +42,9 @@ class Desktop {
let targetScrollX: number;
if (left < initialScrollPos.getLeft()) {
targetScrollX = this.clampScrollX(left);
targetScrollX = left;
} else if (right > initialScrollPos.getRight()) {
targetScrollX = this.clampScrollX(right - this.tilingArea.width);
targetScrollX = right - this.tilingArea.width;
} else {
return this.getScrollPos(this.clampScrollX(this.scrollX));
}