From 556cef4d78c86bdbd677c8d2761f9bf69c9d21a3 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Sat, 17 Aug 2024 14:48:55 -0700 Subject: [PATCH] Cancel clicks if copy is active (#1300) --- files/app/main/app.ut | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/app/main/app.ut b/files/app/main/app.ut index 557cd668..439ce596 100755 --- a/files/app/main/app.ut +++ b/files/app/main/app.ut @@ -85,6 +85,11 @@ } } }); + document.body.addEventListener("click", e => { + if (!document.getSelection().isCollapsed) { + e.stopPropagation(); + } + }, true); })(); {% } %}