mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
When users scroll up to view earlier content in the chat, the auto-scroll timer would keep pulling them back to the bottom. This was caused by the restart condition incorrectly triggering when users were not at the bottom. Changes: - Add userScrolledAway flag to track when user scrolls away from bottom - Stop auto-scroll timer when user scrolls away - Only restart auto-scroll when user manually scrolls back to bottom - Simplify threshold calculation with isNearBottom variable