add a slight offset to the maxScrollExtent jump to not accidentally mark room as read
This commit is contained in:
parent
99270f4bd1
commit
5fcc31b427
1 changed files with 3 additions and 1 deletions
|
|
@ -92,7 +92,9 @@ class RoomChat extends HookConsumerWidget {
|
|||
useEffect(() {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
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