From bafae5ee5f0f1b4de6ffa2dd49e3da4a2f78dbac Mon Sep 17 00:00:00 2001 From: Daniel Stock Date: Fri, 2 Oct 2026 22:27:59 +0200 Subject: [PATCH] Lowered the window of the running average of velocity smoothing in order to make it a little more responsive. --- src/snappy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snappy.js b/src/snappy.js index 1bdaebd..a6dffdf 100644 --- a/src/snappy.js +++ b/src/snappy.js @@ -29,7 +29,7 @@ class Carousel { // Behavioral constants inertia = 0.92; // Decay rate (0.9 = slower stop, 0.99 = longer slide) - velocityFrameCount = 5; + velocityFrameCount = 2; // State variables isDragging = false;