wenhongquan 3 yıl önce
ebeveyn
işleme
298a59dc57
2 değiştirilmiş dosya ile 10 ekleme ve 5 silme
  1. 1 1
      index.html
  2. 9 4
      public/webClient/webClient_initWnd.js

+ 1 - 1
index.html

@@ -12,7 +12,7 @@
     <!-- <script src="./flexible.js"></script> -->
     <script src="./webClient/defaultConfig.js?time=111"></script>
     <script src="./webClient/initWebSocket.js?time=111"></script>
-    <script src="./webClient/webClient_initWnd.js?time=113"></script>
+    <script src="./webClient/webClient_initWnd.js?time=114"></script>
     <script src="./lib/jquery.js"></script>
     <script src="./lib/md5.js"></script>
     <script src="./lib/jsencrypt.min.js"></script>

+ 9 - 4
public/webClient/webClient_initWnd.js

@@ -106,10 +106,15 @@ class VideoPlay {
 
 
             // 实时存储目前视频的大小位置;
-            this.width = Math.round(width * window.devicePixelRatio);
-            this.height = Math.round(height * window.devicePixelRatio);
-            this.posX = Math.round(posX * window.devicePixelRatio);
-            this.posY = Math.round(posY * window.devicePixelRatio);
+            this.width =
+                Math.round(width * window.devicePixelRatio + 5 * window.devicePixelRatio);
+            this.height = Math.round(height * window.devicePixelRatio + 5 * window.devicePixelRatio);
+            this.posX = Math.round(
+                posX * window.devicePixelRatio + 5 * window.devicePixelRatio,
+            );
+            this.posY = Math.round(
+                posY * window.devicePixelRatio + 5 * window.devicePixelRatio,
+            );
 
             // this.width = width;
             // this.height = height;