1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 21:02:06 -04:00

notifications: cap max anim speed in popout

This commit is contained in:
bbedward
2026-02-05 15:17:17 -05:00
parent 3d05c34673
commit 8944762c76
4 changed files with 21 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ DankListView {
property bool isAnimatingExpansion: false
property alias count: listView.count
property alias listContentHeight: listView.contentHeight
property bool cardAnimateExpansion: true
clip: true
model: NotificationService.groupedNotifications
@@ -88,6 +89,7 @@ DankListView {
x: delegateRoot.swipeOffset
notificationGroup: modelData
keyboardNavigationActive: listView.keyboardActive
animateExpansion: listView.cardAnimateExpansion
opacity: 1 - Math.abs(delegateRoot.swipeOffset) / (delegateRoot.width * 0.5)
onIsAnimatingChanged: {
if (isAnimating) {