Skip to content

Conversation

@xuefei1313
Copy link
Contributor

🤔 这个分支是...

  • 新功能
  • Bug fix
  • Ts 类型更新
  • 打包优化
  • 性能优化
  • 功能增强
  • 重构
  • 依赖版本更新
  • 代码优化
  • 测试 case 更新
  • 分支合并
  • 发布
  • 网站/文档更新
  • demo 更新
  • Workflow
  • 其他 (具体是什么,请补充?)

🔗 相关 issue 链接

🔗 相关的 PR 链接

🐞 Bugserver 用例 id

💡 问题的背景&解决方案

背景
在数据量较大或需要精确控制滚动的场景下,默认的百分比滚动行为可能过快或不可预测。同时,当数据量极大时,滚动条滑块(slider)可能会变得极其微小,难以看见和操作。

解决方案

  1. 固定步长滚动 (Fixed Step Scrolling):在 scrollBar 配置中新增 scrollStep 属性(单位:像素)。当配置此属性时,鼠标滚轮事件将按照固定的像素距离移动视图内容,而非默认的百分比。
  2. 最小滑块尺寸 (Minimum Slider Size):在 scrollBar 配置中新增 minSliderSize 属性(单位:像素)。无论数据量多大,渲染时的滑块尺寸都不会小于此设定值,确保可交互性。

📝 Changelog

Language Changelog
🇺🇸 English feat: support fixed pixel step scrolling on wheel event and minimum scrollbar slider height
🇨🇳 Chinese feat: 支持鼠标滚轮事件的固定像素步长滚动及滚动条滑块的最小高度设置

☑️ 自测

⚠️ 在提交 PR 之前,请检查一下内容. ⚠️

  • 文档提供了,或者更新,或者不需要
  • Demo 提供了,或者更新,或者不需要
  • Ts 类型定义提供了,或者更新,或者不需要
  • Changelog 提供了,或者不需要

🚀 Summary

copilot:summary

🔍 Walkthrough

copilot:walkthrough

@xuefei1313 xuefei1313 merged commit 3e56638 into develop Jan 21, 2026
7 of 9 checks passed
@xuefei1313 xuefei1313 deleted the 001-scrollbar-wheel-step branch January 21, 2026 12:20
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.

3 participants