修复聊天室滚屏开关失效

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
+6
View File
@@ -64,8 +64,10 @@ export { bindChatToast } from "./chat-room/toast.js";
export { bindChatComposerControls, setChatComposerAction } from "./chat-room/composer.js";
export {
isExpiredChatImageMessage,
isAutoScrollEnabled,
localClearScreen,
scrollChatToBottom,
setAutoScrollEnabled,
syncAutoScrollControls,
toggleAutoScroll,
} from "./chat-room/message-utils.js";
@@ -319,8 +321,10 @@ if (typeof window !== "undefined") {
bindChatComposerControls,
setChatComposerAction,
isExpiredChatImageMessage,
isAutoScrollEnabled,
localClearScreen,
scrollChatToBottom,
setAutoScrollEnabled,
syncAutoScrollControls,
toggleAutoScroll,
bindInstantHoverTooltip,
@@ -592,8 +596,10 @@ if (typeof window !== "undefined") {
// ── 静态核心模块 window 挂载 ──
window.escapeHtml = escapeHtml;
window.isExpiredChatImageMessage = isExpiredChatImageMessage;
window.isChatAutoScrollEnabled = isAutoScrollEnabled;
window.localClearScreen = localClearScreen;
window.normalizeSafeChatUrl = normalizeSafeChatUrl;
window.setChatAutoScrollEnabled = setAutoScrollEnabled;
window.setAction = setChatComposerAction;
window.syncAutoScrollControls = syncAutoScrollControls;