From 4cd8365c5433d1f67d352640cf1a771786fcc065 Mon Sep 17 00:00:00 2001 From: jprochazk <1665677+jprochazk@users.noreply.github.com> Date: Thu, 6 Jun 2024 15:48:13 +0200 Subject: [PATCH] emit fullscreen event after transition --- rerun_js/web-viewer/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rerun_js/web-viewer/index.ts b/rerun_js/web-viewer/index.ts index c434028e08f3..5013b2e120c4 100644 --- a/rerun_js/web-viewer/index.ts +++ b/rerun_js/web-viewer/index.ts @@ -428,6 +428,7 @@ export class WebViewer { document.body.classList.add(classes.hide_scrollbars); document.documentElement.classList.add(classes.hide_scrollbars); + this.#dispatch_event("fullscreen", true); }); }); @@ -451,7 +452,6 @@ export class WebViewer { _minimize_current_fullscreen_viewer = () => this.#minimize(); this.#fullscreen = true; - this.#dispatch_event("fullscreen", true); }; }