mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Hide hover when leaving the timeline
This commit is contained in:
parent
35a2b0e45a
commit
89a8f7a3f1
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ Item {
|
||||||
property Item attached: null
|
property Item attached: null
|
||||||
property alias model: row.model
|
property alias model: row.model
|
||||||
// use comma to update on scroll
|
// 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
|
readonly property int padding: Nheko.paddingSmall
|
||||||
|
|
||||||
visible: Settings.buttonsInTimeline && !!attached && (attached.hovered || messageActionHover.hovered)
|
visible: Settings.buttonsInTimeline && !!attached && (attached.hovered || messageActionHover.hovered)
|
||||||
|
@ -478,7 +478,7 @@ Item {
|
||||||
TimelineRow {
|
TimelineRow {
|
||||||
id: 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
|
proportionalHeight: wrapper.proportionalHeight
|
||||||
type: chat.model, wrapper.type
|
type: chat.model, wrapper.type
|
||||||
|
|
Loading…
Reference in a new issue