Commit 4d5aab8
committed
fix: fix touchscreen drag interruption issue
1. Replaced DragHandler with MouseArea for drag handling to better
support touchscreen interactions
2. Changed visibility control from `visible` to `opacity` to prevent
layout reflow during drag operations
3. Updated drag activation logic to use MouseArea's drag state instead
of DragHandler's active state
4. Simplified drag initialization by directly setting Drag.imageSource
on the root item
5. Fixed drag state synchronization by binding Drag.active to
mouseArea.drag.active
Log: Fixed touchscreen drag and drop interruption issues
Influence:
1. Test touchscreen drag operations on icon items
2. Verify drag visual feedback (opacity changes) during drag operations
3. Test drag and drop functionality with mouse input
4. Verify drag image appears correctly during drag operations
5. Test drag cancellation and completion scenarios
6. Verify no layout shifts occur during drag operations
fix: 修复触摸屏拖拽被打断的问题
1. 将 DragHandler 替换为 MouseArea 以更好地支持触摸屏交互
2. 将可见性控制从 `visible` 改为 `opacity`,防止拖拽过程中的布局重排
3. 更新拖拽激活逻辑,使用 MouseArea 的拖拽状态而非 DragHandler 的活动
状态
4. 简化拖拽初始化,直接在根项目上设置 Drag.imageSource
5. 通过将 Drag.active 绑定到 mouseArea.drag.active 来修复拖拽状态同步
问题
Log: 修复触摸屏拖拽被打断的问题
Influence:
1. 测试触摸屏上的图标拖拽操作
2. 验证拖拽过程中的视觉反馈(透明度变化)
3. 测试鼠标输入的拖放功能
4. 验证拖拽过程中拖拽图像正确显示
5. 测试拖拽取消和完成场景
6. 验证拖拽过程中没有布局偏移发生
PMS: BUG-3460771 parent 0848d6b commit 4d5aab8
1 file changed
Lines changed: 11 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
91 | 86 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 87 | + | |
95 | 88 | | |
96 | 89 | | |
97 | 90 | | |
| |||
0 commit comments