Skip to content

Commit

Permalink
Fix some mobile browser issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Archer6621 committed May 31, 2023
1 parent d54350f commit 1699f6d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
href="icons/favicon-16x16.png"
/>
<link rel="icon" type="image/ico" href="favicon.ico" />
<link rel="manifest" href="manifest.json" />
</head>
<body>
<!-- quasar:entry-point -->
Expand Down
4 changes: 4 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"display": "fullscreen",
"orientation": "landscape"
}
6 changes: 5 additions & 1 deletion src/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,16 @@ canvas {
}

body {
overscroll-behavior: contain;
overscroll-behavior: none;
overflow: hidden;
width: 100vw;
height: 100vh;
}

html {
overscroll-behavior: none;
}

.buttonToggleMW {
flex-wrap: wrap;
}
Expand Down
14 changes: 7 additions & 7 deletions src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1156,13 +1156,13 @@ export default defineComponent({
}
}
});
document.body.addEventListener(
"touchmove",
function (event) {
event.preventDefault();
},
{ passive: false }
);
// document.body.addEventListener(
// "touchmove",
// function (event) {
// event.preventDefault();
// },
// { passive: false }
// );
// Add placeholders for snapshots
for (const _ of range(0, this.snapshotCount)) {
Expand Down

0 comments on commit 1699f6d

Please sign in to comment.