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.
2 parents 28dcac1 + 1358198 commit 2c80550Copy full SHA for 2c80550
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