wenhongquan 3 years ago
parent
commit
53fa2a2280
1 changed files with 2 additions and 2 deletions
  1. 2 2
      public/webClient/webClient_initWnd.js

+ 2 - 2
public/webClient/webClient_initWnd.js

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