From d5344af04f016ff29302f623b10cdcf4c8a8ab69 Mon Sep 17 00:00:00 2001 From: mic Date: Thu, 15 Aug 2024 00:08:18 +0200 Subject: [PATCH] the selection helper is active only when needed. see #104 --- js/mzta-chatgpt.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js index 8d1f6a3d..46e8c3ba 100644 --- a/js/mzta-chatgpt.js +++ b/js/mzta-chatgpt.js @@ -425,6 +425,10 @@ function selectContentOnMouseUp(event) { } function selectContentOnClick(event) { + if(current_action === '0'){ + return; + } + // Prevent the default behavior of the click event.preventDefault();