summaryrefslogtreecommitdiff
path: root/modules/notifications/Content.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-10 20:19:53 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-10 20:19:53 +1000
commitf0e0569737878da748aa5f74ee542d4eb978bf71 (patch)
treea1398e2a9f83cb169fb401629e68a86eda490f4b /modules/notifications/Content.qml
parentnotifs: slide to remove (diff)
downloadcaelestia-shell-f0e0569737878da748aa5f74ee542d4eb978bf71.tar.gz
caelestia-shell-f0e0569737878da748aa5f74ee542d4eb978bf71.tar.bz2
caelestia-shell-f0e0569737878da748aa5f74ee542d4eb978bf71.zip
launcher: fix interrupted transitions
Diffstat (limited to 'modules/notifications/Content.qml')
-rw-r--r--modules/notifications/Content.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/notifications/Content.qml b/modules/notifications/Content.qml
index ef5c0c0..34d0bcb 100644
--- a/modules/notifications/Content.qml
+++ b/modules/notifications/Content.qml
@@ -54,10 +54,12 @@ Item {
}
remove: Transition {
+ id: remove
+
Anim {
property: "x"
- from: 0
- to: NotifsConfig.sizes.width
+ to: remove.ViewTransition.item.x > 0 ? NotifsConfig.sizes.width : -NotifsConfig.sizes.width
+ duration: Appearance.anim.durations.large
easing.bezierCurve: Appearance.anim.curves.emphasizedAccel
}
}