Pārlūkot izejas kodu

Fix Scene.InputManager.detachControl: Wheel event was not detached.

RamilKadyrov 6 gadi atpakaļ
vecāks
revīzija
b77cf9a3f9
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/Inputs/scene.inputManager.ts

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

@@ -822,6 +822,7 @@ export class InputManager {
 
         // Pointer
         canvas.removeEventListener(eventPrefix + "move", <any>this._onPointerMove);
+        canvas.removeEventListener(this._wheelEventName, <any>this._onPointerMove);
         canvas.removeEventListener(eventPrefix + "down", <any>this._onPointerDown);
         window.removeEventListener(eventPrefix + "up", <any>this._onPointerUp);