From 938d6a63bbc6242e284fe8d0dde8cb97961a8510 Mon Sep 17 00:00:00 2001 From: Joseph Cloutier Date: Thu, 1 Jan 2026 19:35:44 -0500 Subject: [PATCH 1/2] Move inline script into output.js. --- templates/html5/output.js | 8 ++++++++ templates/html5/template/index.html | 10 +--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/templates/html5/output.js b/templates/html5/output.js index e04a257441..7dd45d0d83 100644 --- a/templates/html5/output.js +++ b/templates/html5/output.js @@ -48,3 +48,11 @@ if (typeof define === "function" && define.__amd) { define.amd = define.__amd; delete define.__amd; } + +if (typeof self !== "undefined" && !self.constructor.name.includes("Worker")) { + window.addEventListener ("touchmove", function (event) { event.preventDefault (); }, { capture: false, passive: false }); + if (typeof window.devicePixelRatio != 'undefined' && window.devicePixelRatio > 2) { + var meta = document.getElementById ("viewport"); + meta.setAttribute ('content', 'width=device-width, initial-scale=' + (2 / window.devicePixelRatio) + ', user-scalable=no'); + } +} diff --git a/templates/html5/template/index.html b/templates/html5/template/index.html index daac92480a..d64281e68c 100755 --- a/templates/html5/template/index.html +++ b/templates/html5/template/index.html @@ -16,14 +16,6 @@ ::end::::end:: - -