Safari: Messages fail to auto-scroll, rooms may not connect on first visit, and sent messages don't appear until navigation #236

Closed
opened 2026-04-18 13:34:05 +00:00 by userAdityaa · 6 comments
Collaborator

Three Safari-specific issues:

  1. Auto-scroll breaks: Safari doesn’t support overflow-anchor with column-reverse, so new messages push the viewport up instead of staying pinned to the bottom.

  2. Room fails to load initially: onMount captures a stale cleanup function, so subsequent start() calls don’t register teardown properly, leaving a broken feed subscription.

  3. Sent messages delayed: Messages are optimistically added, but not shown until relay confirmation; Safari’s slower WebSocket timing delays this, causing them to temporarily disappear.

Screenshot 2026-04-20 at 7.48.30 PM.png

Reproducing: Use Safari (macOS or iOS). Open any space room or space chat. Send a message or wait for an incoming message. The viewport does not stick to the bottom, and sent messages may not appear.

Three Safari-specific issues: 1. **Auto-scroll breaks:** Safari doesn’t support `overflow-anchor` with `column-reverse`, so new messages push the viewport up instead of staying pinned to the bottom. 2. **Room fails to load initially:** `onMount` captures a stale cleanup function, so subsequent `start()` calls don’t register teardown properly, leaving a broken feed subscription. 3. **Sent messages delayed:** Messages are optimistically added, but not shown until relay confirmation; Safari’s slower WebSocket timing delays this, causing them to temporarily disappear. <img width="1439" alt="Screenshot 2026-04-20 at 7.48.30 PM.png" src="attachments/9cdbb500-d9b2-4dc0-a1d0-db5e903a4673"> <video src="attachments/7b434464-5427-430e-bba4-fcae8a24fdaf" title="Screen Recording 2026-04-18 at 7.02.53 PM.mp4" controls></video> Reproducing: Use Safari (macOS or iOS). Open any space room or space chat. Send a message or wait for an incoming message. The viewport does not stick to the bottom, and sent messages may not appear.
Author
Collaborator

@hodlbod , this doesn’t appear to be intentional behavior, is it?

@hodlbod , this doesn’t appear to be intentional behavior, is it?
Owner

No, this is a bug. It works in firefox at least, what browser is this?

No, this is a bug. It works in firefox at least, what browser is this?
Author
Collaborator

No, this is a bug. It works in firefox at least, what browser is this?

the recording is from safari.

it's working fine in firefox, chrome for me.

> No, this is a bug. It works in firefox at least, what browser is this? the recording is from safari. it's working fine in firefox, chrome for me.
userAdityaa added the dev label 2026-04-20 13:37:58 +00:00
userAdityaa changed title from Chat Messages Don't Auto-Scroll Into View to Safari: Messages fail to auto-scroll, rooms may not connect on first visit, and sent messages don't appear until navigation 2026-04-20 13:41:57 +00:00
Author
Collaborator

Reworded the title and description to indicate the issue seems Safari-specific.
Will push the fix shortly.

Reworded the title and description to indicate the issue seems Safari-specific. Will push the fix shortly.
Owner

Fixed in c6b0799b

Fixed in c6b0799b
Owner

Also 99fe0e54 fixes the stale cleanup function (good catch)

Also 99fe0e54 fixes the stale cleanup function (good catch)
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coracle/flotilla#236