Skip to content

Commit ace96b6

Browse files
committed
fix:调整自动滚屏的具体参数
1 parent 209cf5a commit ace96b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resources/chatPanelScript.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ function handleKeyDown(e) {
374374

375375
// 优化版智能滚动控制
376376
// 配置常量
377-
const SCROLL_THRESHOLD = 50; // 距离底部50px视为触底
378-
let autoScrollEnabled = false;
377+
const SCROLL_THRESHOLD = 200; // 距离底部?px视为触底
378+
let autoScrollEnabled = true;
379379
let lastScrollTop = 0;
380380

381381
// 精准的滚轮方向检测

0 commit comments

Comments
 (0)