Skip to content

Commit aa6becb

Browse files
committed
rename fixes
1 parent bdc4845 commit aa6becb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/timeline-list/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const TimelineList = (props: TimelineListProps) => {
2525
pages,
2626
pagesRef,
2727
resetPages,
28-
resetPagesDebounced,
29-
scrollToPageDebounced,
28+
resetPagesDebounce,
29+
scrollToPageDebounce,
3030
shouldResetPages,
3131
isOutOfRange,
3232
isNearEdges
@@ -38,9 +38,9 @@ const TimelineList = (props: TimelineListProps) => {
3838

3939
if (updateSource !== UpdateSources.LIST_DRAG) {
4040
if (isOutOfRange(datePageIndex)) {
41-
updateSource === UpdateSources.DAY_PRESS ? resetPages(date) : resetPagesDebounced(date);
41+
updateSource === UpdateSources.DAY_PRESS ? resetPages(date) : resetPagesDebounce(date);
4242
} else {
43-
scrollToPageDebounced(datePageIndex);
43+
scrollToPageDebounce(datePageIndex);
4444
}
4545
}
4646

@@ -50,13 +50,13 @@ const TimelineList = (props: TimelineListProps) => {
5050

5151
const onScroll = useCallback(() => {
5252
if (shouldResetPages.current) {
53-
resetPagesDebounced.cancel();
53+
resetPagesDebounce.cancel();
5454
}
5555
}, []);
5656

5757
const onMomentumScrollEnd = useCallback(() => {
5858
if (shouldResetPages.current) {
59-
resetPagesDebounced(prevDate.current);
59+
resetPagesDebounce(prevDate.current);
6060
}
6161
}, []);
6262

0 commit comments

Comments
 (0)