From a6ce8955b9abf023910a22e5ef81f63ca2ff7cbb Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Mon, 29 Jul 2024 19:12:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E3=80=90=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E3=80=91=E6=B5=AE=E7=AA=97=E6=A8=A1=E5=BC=8F=E5=B5=8C?= =?UTF-8?q?=E5=85=A5=E6=8B=96=E6=8B=BD=E9=97=AE=E9=A2=98=20(#894)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/application/template/embed.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/application/template/embed.js b/apps/application/template/embed.js index 028a642b4..9fff3e5cb 100644 --- a/apps/application/template/embed.js +++ b/apps/application/template/embed.js @@ -98,6 +98,9 @@ const initChat=(root)=>{ } if({{is_draggable}}){ chat_button.addEventListener("drag",drag) + chat_button.addEventListener("dragover",(e)=>{ + e.preventDefault() + }) chat_button.addEventListener("dragend",drag) chat_button.addEventListener("touchstart",drag) chat_button.addEventListener("touchmove",drag)