Fix janky hoverhandling for text messages

Add a 1px border to get more hover enter events...
This commit is contained in:
Nicolas Werner 2021-03-05 16:47:20 +01:00
parent 1142fe2663
commit e1c96569c1
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 4 additions and 1 deletions

View file

@ -54,6 +54,7 @@ ScrollView {
HoverHandler {
id: messageActionHover
grabPermissions: PointerHandler.CanTakeOverFromAnything
}
@ -301,7 +302,6 @@ ScrollView {
id: hoverHandler
enabled: !Settings.mobileMode
onHoveredChanged: {
if (hovered) {
if (!messageActionHover.hovered) {

View file

@ -35,6 +35,7 @@ Item {
RowLayout {
id: row
anchors.rightMargin: 1
anchors.leftMargin: avatarSize + 16
anchors.left: parent.left
anchors.right: parent.right
@ -43,6 +44,8 @@ Item {
Layout.fillWidth: true
Layout.alignment: Qt.AlignTop
spacing: 4
Layout.topMargin: 1
Layout.bottomMargin: 1
// fancy reply, if this is a reply
Reply {