From a49839def94041cee42f7d37cb1d6d355858077f Mon Sep 17 00:00:00 2001 From: Yuhi Sakaguchi Date: Sun, 6 Feb 2022 16:47:50 +0900 Subject: [PATCH] :bug: fix horizontal scroll issue - fixed horizontal scroll issue #805 --- src/lib/Timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Timeline.js b/src/lib/Timeline.js index 1355f110a..d9a3c3acb 100644 --- a/src/lib/Timeline.js +++ b/src/lib/Timeline.js @@ -461,8 +461,8 @@ export default class ReactCalendarTimeline extends Component { (prevState.visibleTimeStart - prevState.canvasTimeStart) / oldZoom ) + this.scrollComponent.scrollLeft = scrollLeft if (componentScrollLeft !== scrollLeft) { - this.scrollComponent.scrollLeft = scrollLeft this.scrollHeaderRef.scrollLeft = scrollLeft } }