Skip to content

Commit 14fa17d

Browse files
Merge pull request #304 from that-one-arab/bug_smartscroll_grid_scrolls_indefinitely
fix(web): Grid scrolls indefinitely when user drags event down
2 parents eb769d2 + a756779 commit 14fa17d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/web/src/views/Calendar/hooks/grid/useDragEventSmartScroll.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,6 @@ export const useDragEventSmartScroll = (
6868
scrollRef.current = null;
6969
}
7070
};
71-
}, [mousePosition]);
71+
// eslint-disable-next-line react-hooks/exhaustive-deps
72+
}, [state.isDragging, mousePosition.x, mousePosition.y]);
7273
};

0 commit comments

Comments
 (0)