mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-26 16:52:10 +00:00
高级组件GridObjectSortComponent拖动元素后,切换到多任务模式,导致元素重叠问题修复。
Signed-off-by: zhangzuhui <zhangzuhui1@h-partners.com>
This commit is contained in:
parent
d92c6457ff
commit
1816746fc9
@ -1862,6 +1862,11 @@ export class GridObjectSortComponent extends ViewPU {
|
||||
}
|
||||
this.calcGridHeight();
|
||||
});
|
||||
LongPressGesture.onActionCancel(() => {
|
||||
if (this.isStartDrag) {
|
||||
this.insertItem(this.itemIndex, this.itemIndex);
|
||||
}
|
||||
});
|
||||
LongPressGesture.pop();
|
||||
Gesture.pop();
|
||||
Grid.clip(false);
|
||||
|
@ -1267,6 +1267,11 @@ export struct GridObjectSortComponent {
|
||||
}
|
||||
this.calcGridHeight();
|
||||
})
|
||||
.onActionCancel(() => {
|
||||
if (this.isStartDrag) {
|
||||
this.insertItem(this.itemIndex, this.itemIndex);
|
||||
}
|
||||
})
|
||||
)
|
||||
.clip(false)
|
||||
.editMode(this.gridComState)
|
||||
|
Loading…
Reference in New Issue
Block a user