Browse Source

dispose onWheelObservable

lockphase 5 years ago
parent
commit
a324fe58fa
1 changed files with 1 additions and 0 deletions
  1. 1 0
      gui/src/2D/controls/control.ts

+ 1 - 0
gui/src/2D/controls/control.ts

@@ -1882,6 +1882,7 @@ export class Control {
         this.onPointerOutObservable.clear();
         this.onPointerUpObservable.clear();
         this.onPointerClickObservable.clear();
+        this.onWheelObservable.clear();
 
         if (this._styleObserver && this._style) {
             this._style.onChangedObservable.remove(this._styleObserver);