From 112b0128fb86f7a9584f8b813f6883baaa1857a9 Mon Sep 17 00:00:00 2001 From: bbazukun123 Date: Thu, 23 May 2024 15:46:06 +0700 Subject: [PATCH] Fix: ScrollBox - Reset lastScrollX / lastScrollY on resize (#167) Co-authored-by: Baz Utsahajit --- src/ScrollBox.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ScrollBox.ts b/src/ScrollBox.ts index aa50c271..0ed54706 100644 --- a/src/ScrollBox.ts +++ b/src/ScrollBox.ts @@ -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