From eb8198d19a920ff73fa4b07aee873a3262214805 Mon Sep 17 00:00:00 2001 From: peacechen Date: Wed, 3 Mar 2021 10:15:22 -0600 Subject: [PATCH] Fix: Add visibleStartIndex & visibleEndIndex to onScrollBeginDrag --- src/Scroller.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Scroller.js b/src/Scroller.js index 922d0ee..f19493b 100644 --- a/src/Scroller.js +++ b/src/Scroller.js @@ -288,6 +288,8 @@ export default class CalendarScroller extends Component { data, visibleStartDate, visibleEndDate, + visibleStartIndex, + visibleEndIndex, } = this.state; const prevStartDate = visibleStartDate ? visibleStartDate : (data[visibleStartIndex] ? data[visibleStartIndex].date : moment());