소스 검색

Merge pull request #4598 from BabylonJS/pointerToZero

Small fix that helps in specific edge cases
David Catuhe 7 년 전
부모
커밋
8afa46ec8e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/babylon.scene.ts

+ 2 - 2
src/babylon.scene.ts

@@ -633,8 +633,8 @@
 
         /** Define this parameter if you are using multiple cameras and you want to specify which one should be used for pointer position */
         public cameraToUseForPointers: Nullable<Camera> = null;
-        private _pointerX: number;
-        private _pointerY: number;
+        private _pointerX: number = 0;
+        private _pointerY: number = 0;
         private _unTranslatedPointerX: number;
         private _unTranslatedPointerY: number;
         private _startingPointerPosition = new Vector2(0, 0);