From 8b17a0e707e20cb943f2d7e18f086bccfe46d2d9 Mon Sep 17 00:00:00 2001 From: Andrew Tavis McAllister Date: Sun, 29 Sep 2024 13:33:44 +0200 Subject: [PATCH] Add timeout to see if tab bar will disappear --- frontend/components/media/MediaMap.vue | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/frontend/components/media/MediaMap.vue b/frontend/components/media/MediaMap.vue index 9f67c24a..cf74ad50 100644 --- a/frontend/components/media/MediaMap.vue +++ b/frontend/components/media/MediaMap.vue @@ -30,13 +30,9 @@ const isTouchDevice = navigator.maxTouchPoints > 0; const applyMaxWindowHeight = () => { - addEventListener( - "load", - function () { - window.scrollTo(1, 0); - }, - false - ); + setTimeout(function () { + window.scrollTo(0, 1); + }, 1000); }; function isWebglSupported() {