Lowered the window of the running average of velocity smoothing in order to make it a little more responsive.
This commit is contained in:
1 parent
33fa17fc7a
commit
bafae5ee5f
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user