dd a slight offset to the maxScrollExtent jump to not accidentally mark room as read
This commit is contained in:
parent
99270f4bd1
commit
139d1aec34
1 changed files with 3 additions and 1 deletions
|
|
@ -92,7 +92,9 @@ class RoomChat extends HookConsumerWidget {
|
||||||
useEffect(() {
|
useEffect(() {
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
if (scrollController.hasClients) {
|
if (scrollController.hasClients) {
|
||||||
scrollController.jumpTo(scrollController.position.maxScrollExtent);
|
scrollController.jumpTo(
|
||||||
|
scrollController.position.maxScrollExtent - .000001,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue