Fix broken top bar clicks without pins
This commit is contained in:
parent
e5a6deaeb2
commit
5c1cc7d5c6
@ -30,7 +30,7 @@ Rectangle {
|
|||||||
|
|
||||||
TapHandler {
|
TapHandler {
|
||||||
onSingleTapped: {
|
onSingleTapped: {
|
||||||
if (eventPoint.position.y > topBar.height - pinnedMessages.height) {
|
if (eventPoint.position.y > topBar.height - (pinnedMessages.visible ? pinnedMessages.height : 0)) {
|
||||||
eventPoint.accepted = true
|
eventPoint.accepted = true
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -63,12 +63,6 @@ Rectangle {
|
|||||||
grabPermissions: PointerHandler.TakeOverForbidden | PointerHandler.CanTakeOverFromAnything
|
grabPermissions: PointerHandler.TakeOverForbidden | PointerHandler.CanTakeOverFromAnything
|
||||||
}
|
}
|
||||||
|
|
||||||
CursorShape {
|
|
||||||
anchors.fill: parent
|
|
||||||
anchors.bottomMargin: pinnedMessages.height
|
|
||||||
cursorShape: Qt.PointingHandCursor
|
|
||||||
}
|
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
id: topLayout
|
id: topLayout
|
||||||
|
|
||||||
@ -307,4 +301,10 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CursorShape {
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.bottomMargin: pinnedMessages.visible ? pinnedMessages.height : 0
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user