feat: use curve for notif clear all anim
Speeds up clearing large numbers of notifications
This commit is contained in:
parent
2fbdfad472
commit
b83ac6e50a
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ Item {
|
||||||
id: clearTimer
|
id: clearTimer
|
||||||
|
|
||||||
repeat: true
|
repeat: true
|
||||||
interval: 50
|
interval: Math.max(15, Math.min(80, 69.8 - 12.3 * Math.log(Notifs.notClosed.length)))
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
const first = Notifs.notClosed[0];
|
const first = Notifs.notClosed[0];
|
||||||
if (first) {
|
if (first) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue