Commit bd6ae92
fix: click area keep same with app on dock
1. Restructured tooltip timer and positioning logic outside the Image
component
2. Replaced TapHandler with MouseArea for better click handling
consistency
3. Fixed tooltip positioning by using toggleworkspace coordinates
instead of Applet.rootObject
4. Maintained hover behavior but with cleaner separation of concerns
The changes improve the reliability of the workspace switching
functionality and tooltip display in the dock's multitask view. The
new MouseArea provides more consistent click handling compared to the
previous TapHandler implementation. The tooltip positioning is now more
accurate as it uses the correct coordinate space.
fix: 修复点击范围保持跟应用一致.
1. 将工具提示计时器和定位逻辑从Image组件中移出并重构
2. 用MouseArea替换TapHandler以获得更一致的点击处理
3. 通过使用toggleworkspace坐标而非Applet.rootObject修复工具提示定位
4. 保持悬停行为但实现了更清晰的关注点分离
这些改动提高了dock中多任务视图的工作区切换功能和工具提示显示的可靠性。新
的MouseArea相比之前的TapHandler提供了更一致的点击处理。工具提示定位现在
更加准确,因为它使用了正确的坐标空间。
Pms: BUG-3237631 parent c7790af commit bd6ae92
1 file changed
+26
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
| |||
0 commit comments