Parcourir la source

Fix passive event warning in chrome

kaliatech il y a 4 ans
Parent
commit
88bc573f8d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/Inputs/scene.inputManager.ts

+ 1 - 1
src/Inputs/scene.inputManager.ts

@@ -848,7 +848,7 @@ export class InputManager {
                     ? "mousewheel" // Webkit and IE support at least "mousewheel"
                     : "DOMMouseScroll"; // let's assume that remaining browsers are older Firefox
 
-            elementToAttachTo.addEventListener(this._wheelEventName, <any>this._onPointerMove, false);
+            elementToAttachTo.addEventListener(this._wheelEventName, <any>this._onPointerMove, { passive: false });
         }
 
         if (attachDown) {