From be00d6e3a9c806e2cd97b237fda1dc0020045e84 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Fri, 15 May 2026 15:16:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=82=B9=E5=87=BB=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E5=9B=BE=E6=97=B6=E5=8F=96=E6=B6=88=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/script.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/js/script.js b/js/script.js index 4697eee..67c7a67 100644 --- a/js/script.js +++ b/js/script.js @@ -1391,6 +1391,21 @@ // 点击背景图显示工具栏 bgImage.addEventListener('click', (e) => { if (!currentImage) return; + + // 取消输入框和层叠图的选中状态 + if (editingInput) { + endEdit(editingInput); + } + if (selectedInput) { + selectedInput.classList.remove('selected'); + selectedInput = null; + hidePositionInfo(); + } + if (selectedOverlay) { + selectedOverlay.classList.remove('selected'); + selectedOverlay = null; + } + e.stopPropagation(); isInteractingWithBgImage = true;