Commit ce9dff99 by libai

测试

parent 8356bb40
...@@ -744,7 +744,7 @@ ...@@ -744,7 +744,7 @@
} }
.touch-box { .touch-box {
position: fixed; position: fixed;
z-index: 1000; z-index: 100;
width: 10rem; width: 10rem;
left: 0; left: 0;
top: 50%; top: 50%;
......
...@@ -767,7 +767,7 @@ ...@@ -767,7 +767,7 @@
} }
.touch-box{ .touch-box{
position: fixed; position: fixed;
z-index: 1000; z-index: 100;
width: 10rem; width: 10rem;
left: 0; left: 0;
top: 50%; top: 50%;
......
...@@ -116,8 +116,9 @@ ...@@ -116,8 +116,9 @@
</div> </div>
</div> </div>
</div> </div>
<div class="touch-box"></div>
<div class="room-bg"> <div class="room-bg">
<div class="touch-box"></div>
<div style="display: none;" class="mc-out-box"> <div style="display: none;" class="mc-out-box">
<img class="room-close" src="images/close.png" alt=""> <img class="room-close" src="images/close.png" alt="">
<div class="room-out-shadow"></div> <div class="room-out-shadow"></div>
...@@ -2150,6 +2151,7 @@ $(function(){ ...@@ -2150,6 +2151,7 @@ $(function(){
if(zwidth<1&topMoveNumBottom==0){ if(zwidth<1&topMoveNumBottom==0){
return; return;
} }
console.log(zwidth)
if(angle==null){ if(angle==null){
angle=Math.abs(goDeg-90) angle=Math.abs(goDeg-90)
} }
...@@ -2157,7 +2159,6 @@ $(function(){ ...@@ -2157,7 +2159,6 @@ $(function(){
return; return;
} }
topMoveNumTop=e.changedTouches[0].clientY-startY topMoveNumTop=e.changedTouches[0].clientY-startY
$(".room-bg,.video-box").css("top",topMoveNumTop+'px') $(".room-bg,.video-box").css("top",topMoveNumTop+'px')
}else if(touchY<e.changedTouches[0].clientY){ }else if(touchY<e.changedTouches[0].clientY){
...@@ -2165,7 +2166,7 @@ $(function(){ ...@@ -2165,7 +2166,7 @@ $(function(){
touchY=e.changedTouches[0].clientY touchY=e.changedTouches[0].clientY
goDeg=Math.abs((-90+(asinGo(e.changedTouches[0].clientX-startX,e.changedTouches[0].clientY-startY)))) goDeg=Math.abs((-90+(asinGo(e.changedTouches[0].clientX-startX,e.changedTouches[0].clientY-startY))))
topMoveNumBottom=e.changedTouches[0].clientY-startY
if(zwidth<1&&topMoveNumTop==0){ if(zwidth<1&&topMoveNumTop==0){
return; return;
} }
...@@ -2173,7 +2174,7 @@ $(function(){ ...@@ -2173,7 +2174,7 @@ $(function(){
angle=Math.abs(goDeg-90) angle=Math.abs(goDeg-90)
} }
if(angle>30)return; if(angle>30)return;
topMoveNumBottom=e.changedTouches[0].clientY-startY
$(".room-bg,.video-box").css("top",topMoveNumBottom+'px') $(".room-bg,.video-box").css("top",topMoveNumBottom+'px')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment