Skip to content

Commit

Permalink
Fix: Add visibleStartIndex & visibleEndIndex to onScrollBeginDrag
Browse files Browse the repository at this point in the history
  • Loading branch information
peacechen committed Mar 3, 2021
1 parent 73b9847 commit eb8198d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Scroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit eb8198d

Please sign in to comment.