feat/auto-scroll #17

Merged
nrupard merged 12 commits from feat/auto-scroll into main 2026-04-14 22:16:44 +02:00
Owner
No description provided.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sticky-bottom was misfiring because is_near_bottom was sampled after
Dioxus appended the new row, inflating scrollHeight. Track at_bottom
continuously via the scroll listener and read the remembered value on
append instead.

Also guard the pre-existing visibilitychange listener in dm_view.rs:
it's registered on document and leaked via cb.forget, so it outlives
the component and panicked when visibility_tick dropped.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Opening a chat with unseen messages leaves at_bottom=false after
scrolling to the first unseen. Without this, the sender's own
next message would show the "new messages" pill instead of
sticking to the bottom.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
nrupard deleted branch feat/auto-scroll 2026-04-14 22:16:45 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/lets-chat!17
No description provided.