mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-04 12:52:06 -04:00
15 lines
397 B
JavaScript
15 lines
397 B
JavaScript
.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;
|