summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-03-01 04:21:00 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-03-01 04:21:00 +0100
commit89a8f7a3f1bd88252944f5882e83743a3f14fdcf (patch)
tree2cca06565bf8a892688290b3711d388fedd3f7a8 /resources/qml
parentFix metadata not resizing properly (diff)
downloadnheko-89a8f7a3f1bd88252944f5882e83743a3f14fdcf.tar.xz
Hide hover when leaving the timeline
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/MessageView.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml
index 7f2a2f57..a717cb31 100644
--- a/resources/qml/MessageView.qml
+++ b/resources/qml/MessageView.qml
@@ -63,7 +63,7 @@ Item {
             property Item attached: null
             property alias model: row.model
             // use comma to update on scroll
-            property var attachedPos: chat.contentY, attached ? chat.mapFromItem(attached, attached ? attached.width - width : 0, -height) : null
+            property var attachedPos: chat.contentY, chat.count, attached ? chat.mapFromItem(attached, attached ? attached.width - width : 0, -height) : null
             readonly property int padding: Nheko.paddingSmall
 
             visible: Settings.buttonsInTimeline && !!attached && (attached.hovered || messageActionHover.hovered)
@@ -478,7 +478,7 @@ Item {
             TimelineRow {
                 id: timelinerow
 
-                hovered: (wrapper.hovered && !messageActionHover.hovered) || (messageActions.model != undefined && messageActions.model.eventId == timelinerow.eventId)
+                hovered: messageActionHover.hovered ? (messageActions.model != undefined && messageActions.model.eventId == timelinerow.eventId) : wrapper.hovered
 
                 proportionalHeight: wrapper.proportionalHeight
                 type: chat.model, wrapper.type