Skip to content

Commit

Permalink
fix the abrupt scrollTo 0 with small velocity
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangarnier committed Jun 7, 2014
1 parent c87aa9f commit 9c66390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ var Scroller;
};

// How much velocity is required to keep the deceleration running
var minVelocityToKeepDecelerating = self.options.snapping ? 4 : 0.1;
var minVelocityToKeepDecelerating = self.options.snapping ? 4 : 0.001;

// Detect whether it's still worth to continue animating steps
// If we are already slow enough to not being user perceivable anymore, we stop the whole process here.
Expand Down

0 comments on commit 9c66390

Please sign in to comment.