修复聊天室滚屏开关失效
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user