From bcb612856d043934f7af9936315c32fce4614501 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Tue, 2 Oct 2018 10:21:39 +0800 Subject: [PATCH] Fix read marker. --- imports/Spectral/Panel/RoomPanel.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imports/Spectral/Panel/RoomPanel.qml b/imports/Spectral/Panel/RoomPanel.qml index 317c975..3ea7464 100644 --- a/imports/Spectral/Panel/RoomPanel.qml +++ b/imports/Spectral/Panel/RoomPanel.qml @@ -23,7 +23,7 @@ RoomPanelForm { } messageListView { - property int largestVisibleIndex: messageListView.count > 0 ? messageListView.indexAt(messageListView.contentX, messageListView.contentY + height - 1) : -1 + property int largestVisibleIndex: messageListView.count > 0 ? messageListView.indexAt(messageListView.contentX, messageListView.contentY + messageListView.height - 1) : -1 onContentYChanged: { if(messageListView.verticalVelocity < 0 && messageListView.contentY - 5000 < messageListView.originY)