Browse Source

修复3D自动漫游bug

liling 1 năm trước cách đây
mục cha
commit
a18036127e
2 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. BIN
      image/imp_icon.png
  2. 5 5
      main.html

BIN
image/imp_icon.png


+ 5 - 5
main.html

@@ -1198,9 +1198,10 @@
 					window.open(SERVER_URL+"/api/export/"+code)
 				})
 				$("#autoplayer_btn").off().on('click',function(){					
-					var img=$(this).find("img")
+					var img=$(this).find("img");
+					AutoPlayer=!AutoPlayer
 					if(AutoPlayer){
-						img.attr("src","image/auto3d_stop.png");
+						img.attr("src","image/auto3d_start.png");
 						try{
 							//循环播放
 							player.Native.CameraAnimation.setLoop(true);
@@ -1208,12 +1209,11 @@
 							player.Native.CameraAnimation.start();
 						}catch(e){}
 					}else{
-						img.attr("src","image/auto3d_start.png");
+						img.attr("src","image/auto3d_stop.png");
 						try{
 							player.Native.CameraAnimation.stop();
 						}catch(e){}
-					}
-					AutoPlayer=!AutoPlayer
+					}					
 				})
 				function GetData(){
 					$.getJSON(SERVER_URL+"/api/index",{},function(res){