Skip to content

fix(vtable): honor disableScroll when dragging a scrollbar - #5393

Open
lanqing431 wants to merge 2 commits into
VisActor:developfrom
lanqing431:fix/issue-5344-scrollbar-disable
Open

lanqing431 wants to merge 2 commits into
VisActor:developfrom
lanqing431:fix/issue-5344-scrollbar-disable

Conversation

@lanqing431

Copy link
Copy Markdown

变更类型

Bug fix。Refs #5344。

变更内容

调用 disableScroll() 后,拖动或点击滚动条仍然会滚动表格。四个滚动条处理器现在都会在禁用期间恢复原滑块位置并退出。重新启用后可继续滚动,滚动条可见性仍由原主题配置控制。

验证

  • 回归测试通过真实 ListTable 滚动条发出的拖动事件检查纵向、主横向、左右冻结区。改动前纵向用例把 scrollTop 从 0 改成 641。
  • 9 个相关测试套件共 48 项通过,TypeScript、提交时 ESLint 和 Prettier 检查通过。
  • 全量视觉测试在 Windows 的平台预检停止,未执行截图对比。

BugServer

待补,仓库内回归测试位于 packages/vtable/__tests__/scrollbar-disable.test.ts。

@visactor-review-bot visactor-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

未发现可确认的新问题。

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant