From f65eef35322bc4f5060aeac31fce42e46bc0a140 Mon Sep 17 00:00:00 2001 From: Niko Date: Mon, 14 Feb 2022 15:25:28 +0100 Subject: [PATCH] Remove events from document on mobile (touch) --- web/src/app/js/base.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/app/js/base.js b/web/src/app/js/base.js index 3b52cbc..c8f6619 100644 --- a/web/src/app/js/base.js +++ b/web/src/app/js/base.js @@ -56,6 +56,8 @@ function dragElement(elmnt, options, onStopDrag) { onStopDrag([ipos3, ipos4], [pos3, pos4]); document.onmouseup = null; document.onmousemove = null; + document.ontouchend = null; + document.ontouchmove = null; if (options.return2start) elmnt.removeAttribute('style'); }