qs: improve notif damper
This commit is contained in:
parent
1f01a009a9
commit
5caf4faa3a
1 changed files with 2 additions and 2 deletions
|
@ -181,8 +181,8 @@ Item {
|
|||
|
||||
FrameAnimation {
|
||||
function dampingVelocity(currentVelocity, delta) {
|
||||
const spring = 150.0;
|
||||
const damping = 20.0;
|
||||
const spring = 100.0;
|
||||
const damping = 12.0;
|
||||
const springForce = spring * delta;
|
||||
const dampingForce = -damping * currentVelocity;
|
||||
return springForce + dampingForce;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue