mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 12:02:51 +00:00
feat: 优化触摸设备交互
- 触摸设备取消拖动选中文件
This commit is contained in:
parent
64d4492806
commit
19d79ab055
@ -1205,6 +1205,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onFileListPointerDown(event) {
|
onFileListPointerDown(event) {
|
||||||
|
if (this.windowTouch) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.tableMode === 'table') {
|
if (this.tableMode === 'table') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1273,6 +1276,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onFileListPointerMove(event) {
|
onFileListPointerMove(event) {
|
||||||
|
if (this.windowTouch) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!this.dragSelecting || !this.dragSelectStart) {
|
if (!this.dragSelecting || !this.dragSelectStart) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1305,6 +1311,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onFileListPointerUp() {
|
onFileListPointerUp() {
|
||||||
|
if (this.windowTouch) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.dragSelecting && this.dragSelectRect) {
|
if (this.dragSelecting && this.dragSelectRect) {
|
||||||
this.updateDragSelection(this.dragSelectRect);
|
this.updateDragSelection(this.dragSelectRect);
|
||||||
}
|
}
|
||||||
@ -1319,6 +1328,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onFileListPointerLeave(event) {
|
onFileListPointerLeave(event) {
|
||||||
|
if (this.windowTouch) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!this.dragSelecting) {
|
if (!this.dragSelecting) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user