Преглед изворни кода

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

RamilKadyrov пре 6 година
родитељ
комит
b77cf9a3f9
1 измењених фајлова са 1 додато и 0 уклоњено
  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);