Skip to content

Commit

Permalink
Add timeout to see if tab bar will disappear
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Sep 29, 2024
1 parent ed31b05 commit 8b17a0e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions frontend/components/media/MediaMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8b17a0e

Please sign in to comment.