Преглед на файлове

Fixing bug with PointerEvent action trigger

David Catuhe преди 11 години
родител
ревизия
1b18ede4fa
променени са 4 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 2 2
      Babylon/babylon.scene.js
  2. 2 2
      Babylon/babylon.scene.ts
  3. 1 1
      babylon.1.14-beta-debug.js
  4. 1 1
      babylon.1.14-beta.js

+ 2 - 2
Babylon/babylon.scene.js

@@ -205,10 +205,10 @@
                 }, false, _this.cameraToUseForPointers);
 
                 if (pickResult.hit) {
+                    _this._meshUnderPointer = pickResult.pickedMesh;
+
                     _this.setPointerOverMesh(pickResult.pickedMesh);
                     canvas.style.cursor = "pointer";
-
-                    _this._meshUnderPointer = pickResult.pickedMesh;
                 } else {
                     _this.setPointerOverMesh(null);
                     canvas.style.cursor = "";

+ 2 - 2
Babylon/babylon.scene.ts

@@ -280,10 +280,10 @@
                     this.cameraToUseForPointers);
 
                 if (pickResult.hit) {
+                    this._meshUnderPointer = pickResult.pickedMesh;
+
                     this.setPointerOverMesh(pickResult.pickedMesh);
                     canvas.style.cursor = "pointer";
-
-                    this._meshUnderPointer = pickResult.pickedMesh;
                 } else {
                     this.setPointerOverMesh(null);
                     canvas.style.cursor = "";

Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
babylon.1.14-beta-debug.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
babylon.1.14-beta.js