From 53fbc04b1f0199a30ee4e404983d5cd60d70d7f9 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 30 Jun 2022 14:03:31 -0400 Subject: [PATCH] Prevent zooming and scrolling via touch screen --- src/index.html | 1 + src/index.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/index.html b/src/index.html index 305c52f..22d4887 100644 --- a/src/index.html +++ b/src/index.html @@ -3,6 +3,7 @@ + Tool Reservations diff --git a/src/index.ts b/src/index.ts index 6eb1729..7f69ac5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -101,4 +101,7 @@ function main() { window.setInterval(refresh, 5 * 60 * 1000); } +document.body.addEventListener('touchmove', (e) => e.preventDefault(), { + passive: false, +}); main();