Safari: Messages fail to auto-scroll, rooms may not connect on first visit, and sent messages don't appear until navigation #236
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Three Safari-specific issues:
Auto-scroll breaks: Safari doesn’t support
overflow-anchorwithcolumn-reverse, so new messages push the viewport up instead of staying pinned to the bottom.Room fails to load initially:
onMountcaptures a stale cleanup function, so subsequentstart()calls don’t register teardown properly, leaving a broken feed subscription.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.
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.
@hodlbod , this doesn’t appear to be intentional behavior, is it?
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.
Chat Messages Don't Auto-Scroll Into Viewto Safari: Messages fail to auto-scroll, rooms may not connect on first visit, and sent messages don't appear until navigationReworded the title and description to indicate the issue seems Safari-specific.
Will push the fix shortly.
Fixed in
c6b0799bAlso
99fe0e54fixes the stale cleanup function (good catch)