mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Feat: Freeze the notifications when hovering
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user