Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,16 @@ const _PickerViewColumn = forwardRef<HandlerRef<ScrollView & View, ColumnProps>,
}
}, [])

// `contentOffset` prop sets visual position but does not fire scroll events,
// so `offsetYShared` (from `useScrollViewOffset`) stays at 0 until the user scrolls.
// Directly sync it whenever `itemRawH` is established so wheel animation renders correctly.
useEffect(() => {
if (!itemRawH || dragging.current || scrolling.current) {
return
}
offsetYShared.value = activeIndex.current * itemRawH
}, [itemRawH])

useEffect(() => {
if (
!scrollViewRef.current ||
Expand Down
Loading