From ead84d3910771277e650c60901fb7f1b5bcf37df Mon Sep 17 00:00:00 2001 From: luyongfang Date: Wed, 14 Jan 2026 16:24:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=89=E5=8D=93=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=9C=BA=E5=9E=8B=E6=8B=BF=E5=88=B0=E7=9A=84absolute?= =?UTF-8?q?=E5=80=BC=E4=B8=8D=E5=AF=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/runtime/components/react/mpx-swiper.tsx | 4 ++++ 1 file changed, 4 insertions(+) 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