mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-10 18:02:55 +00:00
feat: 优化触摸设备交互
- 触摸设备取消拖动选中文件
This commit is contained in:
parent
64d4492806
commit
19d79ab055
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user