From ed14dd4aef6fee015875210a6787afa4c0f69ddd Mon Sep 17 00:00:00 2001 From: Florian Heinz Date: Sun, 12 Apr 2026 20:40:40 +0200 Subject: [PATCH] Refine iOS refresh and disable pinch zoom --- nouri/static/js/ui.js | 10 ++++++++++ nouri/templates/base.html | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/nouri/static/js/ui.js b/nouri/static/js/ui.js index fb19af5..390afeb 100644 --- a/nouri/static/js/ui.js +++ b/nouri/static/js/ui.js @@ -141,6 +141,16 @@ tracking = false; maxPull = 0; }, { passive: true }); + + document.addEventListener("gesturestart", (event) => { + event.preventDefault(); + }); + + document.addEventListener("touchmove", (event) => { + if (event.touches.length > 1) { + event.preventDefault(); + } + }, { passive: false }); }; document.addEventListener("DOMContentLoaded", () => { diff --git a/nouri/templates/base.html b/nouri/templates/base.html index bb16246..ab6f61b 100644 --- a/nouri/templates/base.html +++ b/nouri/templates/base.html @@ -2,7 +2,7 @@ - + {% block title %}Nouri{% endblock %}