wenhongquan 3 년 전
부모
커밋
53fa2a2280
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;