()
| 14 | const INPUT_PLACEHOLDER_WAITING = 'AI 思考中…'; |
| 15 | |
| 16 | export function scrollEnd() { |
| 17 | keepWorkingAtBottom(); |
| 18 | if (S.isAtBottom) requestAnimationFrame(() => { $chat.scrollTop = $chat.scrollHeight; }); |
| 19 | } |
| 20 | |
| 21 | export function updateScrollBtn() { |
| 22 | $('btn-scroll').classList.toggle('visible', !S.isAtBottom); |
no test coverage detected