소스 검색

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);