diff --git a/packages/webpack-plugin/lib/runtime/components/react/mpx-swiper.tsx b/packages/webpack-plugin/lib/runtime/components/react/mpx-swiper.tsx index beb5e43955..c911bdba0c 100644 --- a/packages/webpack-plugin/lib/runtime/components/react/mpx-swiper.tsx +++ b/packages/webpack-plugin/lib/runtime/components/react/mpx-swiper.tsx @@ -839,6 +839,10 @@ const SwiperWrapper = forwardRef, SwiperProps>((pr } preAbsolutePos.value = e[strAbso] }) + .onEnd((e: GestureStateChangeEvent) => { + // 修复某些安卓机型小米 onFinalize拿到的absolute值不正确的问题, onUpdate并不是最终的值 + preAbsolutePos.value = e[strAbso] + }) .onFinalize((e: GestureStateChangeEvent) => { 'worklet' if (touchfinish.value) return