Disable auto-scroll when app is in background, fixes 410
This commit is contained in:
parent
29719c0764
commit
388ea83e45
1 changed files with 1 additions and 1 deletions
|
@ -592,7 +592,7 @@ Page {
|
|||
chatViewStartupReadTimer.restart();
|
||||
}
|
||||
onNewMessageReceived: {
|
||||
if (chatView.manuallyScrolledToBottom || message.sender.user_id === chatPage.myUserId) {
|
||||
if (( chatView.manuallyScrolledToBottom && Qt.application.state === Qt.ApplicationActive ) || message.sender.user_id === chatPage.myUserId) {
|
||||
Debug.log("[ChatPage] Own message received or was scrolled to bottom, scrolling down to see it...");
|
||||
chatView.scrollToIndex(chatView.count - 1);
|
||||
viewMessageTimer.queueViewMessage(chatView.count - 1);
|
||||
|
|
Loading…
Reference in a new issue