Deltakosh vor 11 Jahren
Ursprung
Commit
fe2c3f850c
2 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 4 4
      Babylon/Cameras/babylon.arcRotateCamera.js
  2. 2 2
      Babylon/Mesh/babylon.mesh.js

+ 4 - 4
Babylon/Cameras/babylon.arcRotateCamera.js

@@ -259,8 +259,8 @@ var BABYLON = BABYLON || {};
         canvas.addEventListener("MSGestureChange", this._onGesture, false);
         window.addEventListener("keydown", this._onKeyDown, false);
         window.addEventListener("keyup", this._onKeyUp, false);
-        window.addEventListener('mousewheel', this._wheel, false); //Chrome, Safari, Opera, IE
-        window.addEventListener('DOMMouseScroll', this._wheel, false); //Firefox
+        window.addEventListener('mousewheel', this._wheel, false);
+        window.addEventListener('DOMMouseScroll', this._wheel, false);
         window.addEventListener("blur", this._onLostFocus, false);
     };
 
@@ -278,8 +278,8 @@ var BABYLON = BABYLON || {};
         canvas.removeEventListener("MSGestureChange", this._onGesture);
         window.removeEventListener("keydown", this._onKeyDown);
         window.removeEventListener("keyup", this._onKeyUp);
-        window.removeEventListener('mousewheel', this._wheel); //Chrome, Safari, Opera, IE
-        window.removeEventListener('DOMMouseScroll', this._wheel); //Firefox
+        window.removeEventListener('mousewheel', this._wheel);
+        window.removeEventListener('DOMMouseScroll', this._wheel);
         window.removeEventListener("blur", this._onLostFocus);
 
         this._MSGestureHandler = null;

+ 2 - 2
Babylon/Mesh/babylon.mesh.js

@@ -305,9 +305,8 @@ var BABYLON = BABYLON || {};
     };
 
     BABYLON.Mesh.prototype._updateBoundingInfo = function () {
-        
         this._boundingInfo = this._boundingInfo || new BABYLON.BoundingInfo(this._absolutePosition, this._absolutePosition);
-        
+
         this._scaleFactor = Math.max(this.scaling.x, this.scaling.y);
         this._scaleFactor = Math.max(this._scaleFactor, this.scaling.z);
 
@@ -321,6 +320,7 @@ var BABYLON = BABYLON || {};
 
             subMesh.updateBoundingInfo(this._worldMatrix, this._scaleFactor);
         }
+
     };
 
     BABYLON.Mesh.prototype.computeWorldMatrix = function (force) {