Sfoglia il codice sorgente

Small fix that helps in specific edge cases

David Rousset 7 anni fa
parent
commit
bf3b798d9e
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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);