various fixes

This commit is contained in:
timka123 committed 2026-10-19 09:19:47 +03:00
1 parent 77b26757bf
commit 4bdbc8bfa8
5 files changed
+148 -3

No files matched your search

+12 -2
View File
@@ -78,7 +78,10 @@ Window {
verticalAlignment: Text.AlignVCenter
}
HoverHandler { id: buttonHover; cursorShape: Qt.PointingHandCursor }
TapHandler { onTapped: button.clicked() }
TapHandler {
grabPermissions: PointerHandler.TakeOverForbidden
onTapped: button.clicked()
}
}
Rectangle {
@@ -151,7 +154,14 @@ Window {
opacity: hover.hovered ? 1 : 0.35
Behavior on opacity { NumberAnimation { duration: 120 } }
HoverHandler { id: closeHover; cursorShape: Qt.PointingHandCursor }
TapHandler { onTapped: controller.setMiniVisible(false) }
// The card's DragHandler has CanTakeOverFromAnything so the whole
// pill is draggable; without refusing the take-over here, the tiny
// press-move jitter of a real click steals this tap into a
// startSystemMove() and the close button never fires.
TapHandler {
grabPermissions: PointerHandler.TakeOverForbidden
onTapped: controller.setMiniVisible(false)
}
}
}