feat: can set rootMargin for IntersectionObserver.

This commit is contained in:
Gabe
2025-10-30 00:55:17 +08:00
parent 5322555eba
commit a9bffe3913
4 changed files with 52 additions and 30 deletions

View File

@@ -182,4 +182,5 @@ export const DEFAULT_SETTING = {
transAllnow: false, // 是否立即全部翻译
subtitleSetting: DEFAULT_SUBTITLE_SETTING, // 字幕设置
logLevel: LogLevel.INFO.value, // 日志级别
rootMargin: 200, // 提前触发翻译
};