Commit 36c3126b by libai

测试

parent 7665ae76
...@@ -742,6 +742,13 @@ ...@@ -742,6 +742,13 @@
.video-box video { .video-box video {
min-width: 100%; min-width: 100%;
} }
.touch-box {
position: fixed;
z-index: 1000;
width: 10rem;
left: 0;
top: 50%;
}
.room-bg { .room-bg {
width: 100vw; width: 100vw;
position: fixed; position: fixed;
......
...@@ -765,6 +765,13 @@ ...@@ -765,6 +765,13 @@
min-width: 100%; min-width: 100%;
} }
} }
.touch-box{
position: fixed;
z-index: 1000;
width: 10rem;
left: 0;
top: 50%;
}
.room-bg{ .room-bg{
width: 100vw; width: 100vw;
position: fixed; position: fixed;
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="touch-box"></div>
<div class="room-bg"> <div class="room-bg">
<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="">
...@@ -563,6 +563,8 @@ ...@@ -563,6 +563,8 @@
<script> <script>
$(function(){ $(function(){
var dHeight=$(document).height() var dHeight=$(document).height()
$(".touch-box").css("height",dHeight/2+"px")
$(".touch-box").css("margin-top",-dHeight/4+"px")
var topRoomId var topRoomId
var BottomRoomId var BottomRoomId
localStorage.canvasCode="phone" localStorage.canvasCode="phone"
...@@ -2110,14 +2112,14 @@ $(function(){ ...@@ -2110,14 +2112,14 @@ $(function(){
var topMoveNumBottom=0 var topMoveNumBottom=0
var touchOk=true; var touchOk=true;
//登录相关 //登录相关
$("body").on("touchstart",function(e){ $(".touch-box").on("touchstart",function(e){
if(touchOk==false)return; if(touchOk==false)return;
startX=e.changedTouches[0].clientX startX=e.changedTouches[0].clientX
startY=e.changedTouches[0].clientY startY=e.changedTouches[0].clientY
zwidth=0 zwidth=0
}) })
$("body").on("touchmove",function(e){ $(".touch-box").on("touchmove",function(e){
if(touchOk==false)return; if(touchOk==false)return;
if(touchX==null){ if(touchX==null){
touchX=e.changedTouches[0].clientX touchX=e.changedTouches[0].clientX
...@@ -2177,7 +2179,7 @@ $(function(){ ...@@ -2177,7 +2179,7 @@ $(function(){
} }
}) })
$("body").on("touchend",function(e){ $(".touch-box").on("touchend",function(e){
if(touchOk==false)return; if(touchOk==false)return;
// goX=e.changedTouches[0].clientX-startX // goX=e.changedTouches[0].clientX-startX
// goY=e.changedTouches[0].clientY-startY // goY=e.changedTouches[0].clientY-startY
......
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