Skip to content

Commit

Permalink
Fix: ScrollBox - Reset lastScrollX / lastScrollY on resize (#167)
Browse files Browse the repository at this point in the history
Co-authored-by: Baz Utsahajit <[email protected]>
  • Loading branch information
bbazukun123 and bbazukun123 authored May 23, 2024
1 parent 33a5337 commit 112b012
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ScrollBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,9 @@ export class ScrollBox extends Container
this._dimensionChanged = false;
}
else this.updateVisibleItems();

this.lastScrollX = null;
this.lastScrollY = null;
}

protected onMouseScroll(event: WheelEvent): void
Expand Down

0 comments on commit 112b012

Please sign in to comment.