Commit a5ce38c
committed
fix: disable tray item interactions during collapse
The enabled property was moved from the AppletItemButton to the
individual input handlers (HoverHandler and TapHandler). Previously,
the entire button was disabled when the tray was collapsing, which could
affect visual state. Now only the input interactions are disabled while
maintaining the button's visual appearance. This ensures that tray items
remain visible but non-interactive during collapse animations.
Log: Fixed tray items becoming visually disabled during collapse
animation
Influence:
1. Test tray collapse animation - items should remain visible but not
respond to hover or clicks
2. Verify that tray items return to normal interactive state after
collapse completes
3. Check that hover effects and click actions work normally when not
collapsing
4. Ensure no visual glitches during the transition between states
fix: 修复托盘项在折叠期间交互问题
将 enabled 属性从 AppletItemButton 移动到单独的输入处理器(HoverHandler
和 TapHandler)。之前当托盘折叠时整个按钮被禁用,这可能会影响视觉状态。
现在仅禁用输入交互,同时保持按钮的视觉外观。这确保托盘项在折叠动画期间保
持可见但不可交互。
Log: 修复托盘项在折叠动画期间变为视觉禁用状态的问题
Influence:
1. 测试托盘折叠动画 - 托盘项应保持可见但不响应悬停或点击
2. 验证托盘项在折叠完成后恢复正常交互状态
3. 检查悬停效果和点击动作在非折叠状态下正常工作
4. 确保状态转换期间没有视觉故障
PMS: BUG-3508831 parent d8cf237 commit a5ce38c
File tree
2 files changed
+1
-8
lines changed- panels/dock/tray/package
2 files changed
+1
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 90 | | |
97 | 91 | | |
98 | 92 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
0 commit comments