Prevent zooming and scrolling via touch screen

This commit is contained in:
Adam Goldsmith 2022-06-30 14:03:31 -04:00
parent cae376ae13
commit 53fbc04b1f
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport" content="initial-scale=1, user-scalable=no" />
<title>Tool Reservations</title> <title>Tool Reservations</title>
</head> </head>
<body> <body>

View File

@ -101,4 +101,7 @@ function main() {
window.setInterval(refresh, 5 * 60 * 1000); window.setInterval(refresh, 5 * 60 * 1000);
} }
document.body.addEventListener('touchmove', (e) => e.preventDefault(), {
passive: false,
});
main(); main();