Jump to current timelime when scrolled to bottom of historical timeline

Fixes #100.
This commit is contained in:
Henry Hiles 2026-09-28 09:55:08 -04:00
commit e5b39507c8
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -129,6 +129,14 @@ final class ChatScroll({
} else if (position.extentBefore <= readThreshold) {
await markRead();
}
if (controllerData.isLoading == false &&
position.extentBefore <= readThreshold &&
controllerData.value?.hasMoreForward == false &&
contextualEvent.value != null) {
anchorId.value = null;
contextualEvent.value = null;
}
}
scrollController.addListener(checkPosition);