Commit c56e04e
committed
feat: change scroll trigger from click to hover
Changed ArrowListView button behavior from click-based to hover-based
scrolling
1. Replaced Button with ActionButton component for better hover handling
2. Added timer-based auto-scrolling with initial 300ms delay and 100ms
repeat interval
3. Implemented state machine to manage hover detection and scroll
execution
4. Modified layout properties to use Layout.fillWidth for better button
sizing
5. Removed onClicked handler and replaced with unified performScroll
function
feat: 将滚动触发方式从点击改为悬停
将 ArrowListView 按钮行为从基于点击改为基于悬停的滚动
1. 将 Button 替换为 ActionButton 组件以更好地处理悬停
2. 添加基于计时器的自动滚动,具有 300 毫秒初始延迟和 100 毫秒重复间隔
3. 实现状态机来管理悬停检测和滚动执行
4. 修改布局属性使用 Layout.fillWidth 以获得更好的按钮尺寸
5. 移除 onClicked 处理程序并替换为统一的 performScroll 函数
PMS: BUG-314007 BUG-2782251 parent e9f15d2 commit c56e04e
2 files changed
Lines changed: 39 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
30 | 63 | | |
31 | 64 | | |
0 commit comments