Browse Source

dispose onWheelObservable

lockphase 5 năm trước cách đây
mục cha
commit
a324fe58fa
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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);