feat: 优化触摸设备交互

- 触摸设备取消拖动选中文件
This commit is contained in:
kuaifan 2025-11-10 16:14:01 +00:00
parent 64d4492806
commit 19d79ab055

View File

@ -1205,6 +1205,9 @@ export default {
},
onFileListPointerDown(event) {
if (this.windowTouch) {
return;
}
if (this.tableMode === 'table') {
return;
}
@ -1273,6 +1276,9 @@ export default {
},
onFileListPointerMove(event) {
if (this.windowTouch) {
return;
}
if (!this.dragSelecting || !this.dragSelectStart) {
return;
}
@ -1305,6 +1311,9 @@ export default {
},
onFileListPointerUp() {
if (this.windowTouch) {
return;
}
if (this.dragSelecting && this.dragSelectRect) {
this.updateDragSelection(this.dragSelectRect);
}
@ -1319,6 +1328,9 @@ export default {
},
onFileListPointerLeave(event) {
if (this.windowTouch) {
return;
}
if (!this.dragSelecting) {
return;
}