Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Tabs组件中tabs容器移动速度与指示器速度不一致 #6

Open
NeverEllipsis opened this issue Aug 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@NeverEllipsis
Copy link
Collaborator

描述问题
Tabs组件中tabs容器移动速度与指示器速度不一致,tabs容器通过js立即改变scrollLeft,指示器通过css移动,有过度效果,导致两者移动速度不匹配。
相关代码:

tabsRef.current.scrollLeft = nextScrollLeft;

复现步骤
步骤:

  1. 在H5渠道点击超出可滑动Tabs
  2. tab标题移动速度与指示器不匹配

期望结果
tab标题移动速度与指示器协调

实际结果
tab标题移动速度与指示器不匹配

环境信息

  • 操作系统: [MacOS]
  • 渠道: [H5]
  • 浏览器: [Chrome]
  • 版本: [如 1.0.5]
@NeverEllipsis NeverEllipsis added the bug Something isn't working label Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant