Account for spacing when checking for bottom message for read status

This commit is contained in:
Nicolas Werner 2020-01-21 20:46:12 +01:00
parent c95f4d8276
commit fcc7c0ce5b
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ Item {
Binding {
target: chat.model
property: "currentIndex"
when: y + height > chat.contentY + chat.height && y < chat.contentY + chat.height
when: y + height + 2 * chat.spacing > chat.contentY + chat.height && y < chat.contentY + chat.height
value: index
delayed: true
}