notifs: fix interactions

This commit is contained in:
Soramane 2025-07-16 17:41:51 +10:00
parent 38e9e24390
commit 88c628a777

View file

@ -27,6 +27,14 @@ StyledRect {
x: Config.notifs.sizes.width x: Config.notifs.sizes.width
Component.onCompleted: x = 0 Component.onCompleted: x = 0
Behavior on x {
NumberAnimation {
duration: Appearance.anim.durations.normal
easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.anim.curves.emphasizedDecel
}
}
RetainableLock { RetainableLock {
object: root.modelData.notification object: root.modelData.notification
locked: true locked: true
@ -73,15 +81,6 @@ StyledRect {
if (actions?.length === 1) if (actions?.length === 1)
actions[0].invoke(); actions[0].invoke();
} }
}
Behavior on x {
NumberAnimation {
duration: Appearance.anim.durations.normal
easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.anim.curves.emphasizedDecel
}
}
Item { Item {
id: inner id: inner
@ -479,6 +478,7 @@ StyledRect {
} }
} }
} }
}
component Anim: NumberAnimation { component Anim: NumberAnimation {
duration: Appearance.anim.durations.normal duration: Appearance.anim.durations.normal