소스 검색

修改移动端禁止拖拽事件

shaogen1995 3 년 전
부모
커밋
97984a2925
2개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 2
      index.html
  2. 1 1
      js/shiyou.js

+ 5 - 2
index.html

@@ -157,8 +157,11 @@
             .tutorials .btn >div {
                 margin-bottom: 15px;
             }
-            .myBacImg{
-                display: none !important;
+            .myBacImg .img{
+                /* display: none !important; */
+                width: 80vw;
+                height: 80vw;
+                /* height: 50vh; */
             }
             .pinBottom.left{
                 transform: translateX(0);

+ 1 - 1
js/shiyou.js

@@ -16,7 +16,7 @@ let SHIYOU = {
       return false
     });
  
-    $('.myBacImg').bind('pointermove',()=>{
+    $('.myBacImg').bind('pointermove touchmove',()=>{
       return false
     });