Commit e27aff96 authored by Li Mingzhe's avatar Li Mingzhe

feat: remove resize

parent fd3ef4a8
...@@ -1117,9 +1117,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1117,9 +1117,9 @@ export class PlayComponent implements OnInit, OnDestroy {
@ViewChild("canvas") canvas: ElementRef; @ViewChild("canvas") canvas: ElementRef;
@ViewChild("wrap") wrap: ElementRef; @ViewChild("wrap") wrap: ElementRef;
@HostListener("window:resize", ["$event"]) @HostListener("window:resize", ["$event"])
onResize(event) { // onResize(event) {
this.g_winResizeEventStream.next(); // this.g_winResizeEventStream.next();
} // }
ngOnDestroy() { ngOnDestroy() {
window["curCtx"] = null; window["curCtx"] = null;
window.cancelAnimationFrame(this.g_animationId); window.cancelAnimationFrame(this.g_animationId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment