From 7fcb85d2818926d0de2ebfc8f66be63bcf3a5ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Thu, 8 Dec 2022 22:30:26 +0100 Subject: [PATCH] fix: touch clicks --- src/components/SVGContent.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/SVGContent.svelte b/src/components/SVGContent.svelte index af449f1..9105e8d 100644 --- a/src/components/SVGContent.svelte +++ b/src/components/SVGContent.svelte @@ -110,6 +110,9 @@ beforeWheel: () => { return panning; }, + onTouch: function () { + return false; // tells the library to not preventDefault. + }, onDoubleClick: () => { return; // TODO WHY BLACK?! if (!document.fullscreenElement) {