Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshunnn committed Dec 4, 2024
1 parent 985fe1b commit df0b089
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ const _PickerViewColumn = forwardRef<HandlerRef<ScrollView & View, ColumnProps>,
})

const onScrollViewLayout = (e: LayoutChangeEvent) => {
const widthInt = Math.round(e.nativeEvent.layout.width)
if (widthInt !== scrollViewWidth) {
const { width } = e.nativeEvent.layout
const widthInt = Math.round(width)
if (width !== widthInt && widthInt !== scrollViewWidth) {
setScrollViewWidth(widthInt)
}
}
Expand Down

0 comments on commit df0b089

Please sign in to comment.