!566 合并成大文件夹无法拖动

Merge pull request !566 from zhengyongjie/master
This commit is contained in:
openharmony_ci 2024-09-05 02:37:50 +00:00 committed by Gitee
commit c1eaf4f730
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -335,10 +335,10 @@ export struct FolderComponent {
Log.showInfo(TAG, `onHover isHover:${isHover}`);
this.isHover = isHover;
})
.bindContextMenu(this.MenuBuilder, ResponseType.LongPress)
.onDragStart((event: DragEvent) => {
return this.dragStart(event);
})
.bindContextMenu(this.MenuBuilder, ResponseType.LongPress)
.onDragEnd((event: DragEvent, extraParams: string) => {
Log.showInfo(TAG, `onDragEnd event: [${event.getWindowX()}, ${event.getWindowY()}]` + event.getResult());
AppStorage.setOrCreate<LauncherDragItemInfo>('dragItemInfo', new LauncherDragItemInfo());

View File

@ -103,10 +103,10 @@ export struct FormItemComponent {
this.clickForm(event, this.formItem);
}
})
.bindContextMenu(this.MenuBuilder, ResponseType.LongPress)
.onDragStart((event: DragEvent, extraParams: string) => {
return this.dragStart(event);
})
.bindContextMenu(this.MenuBuilder, ResponseType.LongPress)
.onDragEnd((event: DragEvent, extraParams: string) => {
Log.showInfo(TAG, `onDragEnd event: [${event.getWindowX()}, ${event.getWindowY()}]` + event.getResult());
AppStorage.setOrCreate<LauncherDragItemInfo>('dragItemInfo', new LauncherDragItemInfo());