Fix read marker.

This commit is contained in:
Black Hat 2018-10-02 10:21:39 +08:00
parent ae538a7c45
commit bcb612856d
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ RoomPanelForm {
} }
messageListView { 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: { onContentYChanged: {
if(messageListView.verticalVelocity < 0 && messageListView.contentY - 5000 < messageListView.originY) if(messageListView.verticalVelocity < 0 && messageListView.contentY - 5000 < messageListView.originY)