ananzhusen преди 1 година
родител
ревизия
3766abdfcf
променени са 2 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 4 1
      src/views/components/Graphics.vue
  2. 2 1
      src/views/components/View.vue

+ 4 - 1
src/views/components/Graphics.vue

@@ -141,6 +141,9 @@
                   @click.stop="dragStart($event, elem)"
                   @dblclick.stop="open(elem)"
                   @contextmenu="onContextMenu($event, item, elem)"
+                  @touchstart.passive="
+                  dragStart($event, elem)
+                "
                 >
                 <!-- img 路径这样拼凑避免更新后路径一致图片使用缓存不更新 -->
                   <t-image
@@ -1017,7 +1020,7 @@ const getPrivateProjects = async (type: string) => {
   }
 };
 
-const dragStart = async (event: DragEvent | MouseEvent, item: any) => {
+const dragStart = async (event: DragEvent | MouseEvent|TouchEvent, item: any) => {
   // event.stopPropagation();
   if (!item) {
     return;

+ 2 - 1
src/views/components/View.vue

@@ -1888,7 +1888,8 @@ const onSuccessChargeCloud = () => {
 
   #meta2d {
     border-top: 1px solid var(--color-background-input);
-    height: calc(100vh - 81px);
+    /* height: calc(100vh - 81px); */
+    height: calc(100% - 40px);
     z-index: 1;
     overflow: hidden;