Lowered the window of the running average of velocity smoothing in order to make it a little more responsive.

This commit is contained in:
vollstock committed 2026-10-02 22:27:59 +02:00
1 parent 33fa17fc7a
commit bafae5ee5f
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@ class Carousel {
// Behavioral constants // Behavioral constants
inertia = 0.92; // Decay rate (0.9 = slower stop, 0.99 = longer slide) inertia = 0.92; // Decay rate (0.9 = slower stop, 0.99 = longer slide)
velocityFrameCount = 5; velocityFrameCount = 2;
// State variables // State variables
isDragging = false; isDragging = false;