Skip to content

Commit

Permalink
不要。
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanasu committed Dec 24, 2023
1 parent e4d3fe6 commit 5c20f5c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/app/component/text-note/text-note.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,6 @@ export class TextNoteComponent implements OnChanges, OnDestroy {
gridSize: number = 50;
math = Math;

private _fallTimeout = null;
private _fall: boolean = false;
get fall(): boolean { return this._fall; }
set fall(fall: boolean) {
this._fall = fall;
if (this._fallTimeout) clearTimeout(this._fallTimeout);
if (fall) {
this._fallTimeout = setTimeout(() => {
this._fall = false;
}, 132);
} else {
this._fallTimeout = null;
}
}

private calcFitHeightTimer: NodeJS.Timeout = null;

movableOption: MovableOption = {};
Expand Down Expand Up @@ -184,7 +169,6 @@ export class TextNoteComponent implements OnChanges, OnDestroy {
}

ngOnDestroy() {
if (this._fallTimeout) clearTimeout(this._fallTimeout)
EventSystem.unregister(this);
this.input.destroy();
}
Expand Down

0 comments on commit 5c20f5c

Please sign in to comment.