4 comments (4 comments)1 reaction (1 reaction)0 assignees (0 assignees)TypeScript2,313 forks (2,313 forks)batch import
bughelp wanted
Repository metrics
- Stars
- 11,238 stars (11,238 stars)
- PR merge metrics
- Avg merge 7h 11m (Avg merge 7h 11m)8 merged PRs in 30d (8 merged PRs in 30d)
Description
Version of antd-mobile
5.32.0
Operating system and its version
No response
Browser and its version
Edge114
Sandbox to reproduce
https://codesandbox.io/s/interesting-sanderson-qzhw35
What happened?
以sandbox中的例子,Swiper中有6个Item
- 通过
swipeTo(index)连续快速切换-1和0位置时表现正常; 切换到-1并等待动画结束后再切换到0就会向另一个方向滚动
- 连续切换-1和6位置时表现与上面相反: 慢速时正常,快速切换时方向错误
Relevant log output
No response
Contributor guide
- Research direction
- Investigate the logic that determines swipe direction when crossing loop boundaries during active animations. Check how the Swiper component handles `swipeTo` calls while a previous animation is still in progress, especially for loop mode. The bug likely occurs because the direction calculation does not account for the current animation state.
- Tech stack
- reacttypescript
- Domain
- frontend
- Issue type
- Bug
- Prerequisites
- ReactJavaScript