mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-13 01:02:18 -04:00
scrollies: switch to frame animation for kinetic scroll
This commit is contained in:
14
quickshell/Widgets/ScrollConstants.js
Normal file
14
quickshell/Widgets/ScrollConstants.js
Normal file
@@ -0,0 +1,14 @@
|
||||
.pragma library
|
||||
|
||||
const friction = 0.96;
|
||||
const touchpadSpeed = 3.5;
|
||||
const mouseWheelSpeed = 60;
|
||||
const momentumRetention = 0.92;
|
||||
const momentumDeltaFactor = 0.15;
|
||||
const maxMomentumVelocity = 2500;
|
||||
const minMomentumVelocity = 50;
|
||||
const momentumStopThreshold = 5;
|
||||
const velocitySampleWindowMs = 100;
|
||||
const momentumTimeThreshold = 50;
|
||||
const flickDeceleration = 1500;
|
||||
const maximumFlickVelocity = 2000;
|
||||
Reference in New Issue
Block a user