We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28dcac1 commit 1358198Copy full SHA for 1358198
src/Date/Swiper.native.tsx
@@ -105,7 +105,7 @@ function SwiperInner({
105
const contentOffset = e.nativeEvent.contentOffset
106
const viewSize = e.nativeEvent.layoutMeasurement
107
const newIndex = isHorizontal
108
- ? Math.floor(contentOffset.x / viewSize.width)
+ ? Math.round(contentOffset.x / viewSize.width)
109
: getIndexFromVerticalOffset(
110
contentOffset.y - beginOffset,
111
startWeekOnMonday
0 commit comments