Feat: Freeze the notifications when hovering

This commit is contained in:
amadoabad
2025-10-17 01:57:27 +03:00
parent 838491ba33
commit b0f6f22b2d
2 changed files with 29 additions and 2 deletions
+9
View File
@@ -252,11 +252,20 @@ Variants {
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.RightButton
hoverEnabled: true
onClicked: {
if (mouse.button === Qt.RightButton) {
animateOut()
}
}
onContainsMouseChanged: {
if (containsMouse) {
NotificationService.pauseTimeout(notificationId)
} else {
NotificationService.resumeTimeout(notificationId)
}
}
}
// Scale, fade, and slide animation