Jump to current timelime when scrolled to bottom of historical timeline
Fixes #100.
This commit is contained in:
parent
d37538b69f
commit
e5b39507c8
1 changed files with 8 additions and 0 deletions
|
|
@ -129,6 +129,14 @@ final class ChatScroll({
|
||||||
} else if (position.extentBefore <= readThreshold) {
|
} else if (position.extentBefore <= readThreshold) {
|
||||||
await markRead();
|
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);
|
scrollController.addListener(checkPosition);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue