mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 15:02:04 +00:00
Subscribe to window.visualViewport.resize so the last bubble stays visible when the phone's soft keyboard slides in. Without the listener the scroller's scrollHeight reflects the layout viewport rather than the visible region, leaving the tail of the thread hidden behind the keyboard. The handler only re-pins when the user was already at the bottom, matching the existing auto-scroll contract.