We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a0fc60 + 820616b commit a54a914Copy full SHA for a54a914
lib/ftscroller.js
@@ -1067,8 +1067,7 @@ var FTScroller, CubicBezier;
1067
{ duration } = log( { speed } / { initial speed } ) / log( { friction } )
1068
*/
1069
1070
- flingDuration = Math.log(_kMinimumSpeed / Math.abs(movementSpeed)) / Math.log(_kFriction);
1071
-
+ flingDuration = Math.min(_instanceOptions.maxFlingDuration, Math.log(_kMinimumSpeed / Math.abs(movementSpeed)) / Math.log(_kFriction));
1072
1073
/* Calculate the fling distance (before any bouncing or snapping). As per
1074
TouchScroll, the total distance covered can be approximated by summing
0 commit comments