修复聊天室滚屏开关失效

This commit is contained in:
pllx
2026-04-30 15:19:38 +08:00
parent 8c7b1086ff
commit b21f583fe5
6 changed files with 70 additions and 10 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
// 聊天输入区完整逻辑:发送消息、草稿管理、IME 防重、神秘箱子暗号拦截。
// 从 Blade 内联脚本 scripts.blade.php 迁移至 Vite 模块。
import { isAutoScrollEnabled, scrollChatToBottom } from "./message-utils.js";
let chatComposerEventsBound = false;
function csrf() {
@@ -165,7 +167,7 @@ async function sendMessage(e) {
const say2 = document.getElementById("say2");
if (say2) {
say2.appendChild(muteDiv);
say2.scrollTop = say2.scrollHeight;
scrollChatToBottom(say2, isAutoScrollEnabled);
}
if (state) {
state.isSending = false;