fix: chatbot reopen behabior on iOS (#19406)

This commit is contained in:
ga_o 2025-05-08 23:52:53 +09:00 committed by GitHub
commit ee3b66bdcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -274,7 +274,10 @@
// Add click event listener to toggle chatbot
containerDiv.addEventListener("click", handleClick);
// Add touch event listener
containerDiv.addEventListener("touchend", handleClick);
containerDiv.addEventListener("touchend", (event) => {
event.preventDefault();
handleClick();
}, { passive: false });
function handleClick() {
if (isDragging) return;