shaogen1995 1 vuosi sitten
vanhempi
commit
a75da5b143
2 muutettua tiedostoa jossa 14 lisäystä ja 1 poistoa
  1. 11 0
      public/index.html
  2. 3 1
      src/views/HomeView.vue

+ 11 - 0
public/index.html

@@ -6,6 +6,17 @@
     <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
     <link rel="icon" href="<%= BASE_URL %>logo.ico">
     <title>无尽藏</title>
+    <style>
+      .scroller{
+        touch-action: manipulation;
+      }
+      html,body,#app,.home{
+        touch-action: none;
+      }
+      .home{
+        position: relative;
+      }
+    </style>
   </head>
   <body>
     <script src="./configText.js"></script>

+ 3 - 1
src/views/HomeView.vue

@@ -489,7 +489,6 @@ const touchMove = (event) => {
   }
 }
 
-
 </script>
 
 <style lang="less" scoped>
@@ -619,6 +618,9 @@ const touchMove = (event) => {
     height: calc(522 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
     z-index: 7;
     pointer-events: none;
+    &>div{
+      z-index: 100;
+    }
     >.hotspot-1{
       position: absolute;
       top: calc(54 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));