- 
                Notifications
    
You must be signed in to change notification settings  - Fork 620
 
Description
💬 Before You Start
- I have searched the issues of this repository and believe that this is not a duplicate.
 
🙋 Description/Step to reproduce
问题描述:
1.Carousel组件中的infinite为true没有循环播放(偶现)
2.Carousel组件窗口显示下面高亮按钮对应不上的问题(偶现)
3.Tabs组件onChange方法首次滑动不生效问题(偶现)
问题分析:
原因是Carousel三方库源码内部有一个计算,(const isScrollAnimationEnd =!this.isScrolling &&(this.props.vertical ? y / height : x / width) % 1 === 0)计算不准确,左侧的值可能是0.0...与0不相等,有误差。
🔴 Version
5.4.2
💻 Environment
Android
⚫️ Output of npx react-native info
System:
OS: Windows 11 10.0.22631
CPU: (12) x64 Intel(R) Core(TM) i5-10500 CPU @ 3.10GHz
Memory: 20.75 GB / 31.72 GB
Binaries:
Node:
version: 22.16.0
path: D:\OpenHarmony_SDK\NodeJS_22\node.EXE
Yarn:
version: 1.22.22
path: D:\OpenHarmony_SDK\NodeJS_22\yarn.CMD
npm:
version: 10.9.2
path: D:\OpenHarmony_SDK\NodeJS_22\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels:
- "26"
- "29"
- "33"
- "35"
- "36"
Build Tools:
- 26.0.3
- 30.0.3
- 33.0.0
- 33.0.1
- 34.0.0
- 35.0.0
- 36.0.0
- 36.1.0
Android NDK: 28.0.13004108
Windows SDK: Not Found
IDEs:
Android Studio: Not Found
Visual Studio:
- 17.14.36616.10 (Visual Studio Community 2022)
Languages:
Java:
version: 17.0.14
path: D:\OpenHarmony_SDK\JDK-17\bin\javac.EXE
Ruby: Not Found
Additional comments
No response