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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user