Skip to content

Commit 36513bd

Browse files
committed
Add a comment to explain better the Timeline scrollOffset functionality
1 parent d1cc1ec commit 36513bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/timeline/useTimelineOffset.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export default (props: UseTimelineOffsetProps) => {
1313
const inMomentum = useRef(false);
1414

1515
useEffect(() => {
16+
// NOTE: The main reason for this feature is to sync the offset
17+
// between all of the timelines in the TimelineList component
1618
if (scrollOffset !== undefined) {
1719
scrollViewRef?.current?.scrollTo({
1820
y: scrollOffset,

0 commit comments

Comments
 (0)