perf(chatScroll): Reduce loadMoreMessagesIfScrollBelowThreshold to 100.

This commit is contained in:
Alex Jbanca 2023-01-18 09:58:24 +02:00 committed by Alex Jbanca
parent 27bb6bf665
commit 54e91e0ba7
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ Item {
readonly property bool isMostRecentMessageInViewport: chatLogView.visibleArea.yPosition >= 0.999 - chatLogView.visibleArea.heightRatio
readonly property var chatDetails: chatContentModule.chatDetails || null
readonly property var loadMoreMessagesIfScrollBelowThreshold: Backpressure.oneInTime(root, 500, function() {
readonly property var loadMoreMessagesIfScrollBelowThreshold: Backpressure.oneInTime(root, 100, function() {
if(scrollY < 1000) messageStore.loadMoreMessages()
})