瀏覽代碼

dispose onWheelObservable

lockphase 5 年之前
父節點
當前提交
a324fe58fa
共有 1 個文件被更改,包括 1 次插入0 次删除
  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);