Explorar o código

Fix passive event warning in chrome

kaliatech %!s(int64=4) %!d(string=hai) anos
pai
achega
88bc573f8d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {