Browse Source

悬浮框位置调整

yangc 8 years ago
parent
commit
52fcc840bc
1 changed files with 3 additions and 3 deletions
  1. 3 3
      components/mobile/MobileHeader.vue

+ 3 - 3
components/mobile/MobileHeader.vue

@@ -219,8 +219,8 @@
       onTouchMove: function (e) {
         let width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth
         let height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
-        let x = Math.min(width - 20, e.touches[0].clientX)
-        let y = Math.min(height - 20, e.touches[0].clientY)
+        let x = Math.min(width - 40, e.touches[0].clientX)
+        let y = Math.min(height - 40, e.touches[0].clientY)
         x = Math.max(0, x)
         y = Math.max(0, y)
         e.preventDefault()
@@ -287,7 +287,7 @@
     position: fixed;
     right: .25rem;
     top: .25rem;
-    z-index: 300;
+    z-index: 1000;
     color: #fff;
     background: rgba( 0, 0, 0, .251 );
     width: .8rem;