Skip to content

Commit

Permalink
fix: fix header fullscreen exit by ESC or F11 issue (#360)
Browse files Browse the repository at this point in the history
* fix:fix header fullscreen exit by ESC or F11 issue

* Update fullscreen.component.ts
  • Loading branch information
jecyhw authored and cipchk committed Mar 27, 2018
1 parent 6a60d5a commit 1d1f261
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -12,11 +12,15 @@ export class HeaderFullScreenComponent {

status = false;

@HostListener('window:resize')
_resize() {
this.status = screenfull.isFullscreen;
}

@HostListener('click')
_click() {
if (screenfull.enabled) {
screenfull.toggle();
}
this.status = !screenfull.isFullscreen;
}
}

0 comments on commit 1d1f261

Please sign in to comment.