Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Unified Diff: sky/framework/fling-curve.dart

Issue 947303003: Fix subtle bugs in sky-scrollable (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/framework/sky-drawer.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/fling-curve.dart
diff --git a/sky/framework/fling-curve.dart b/sky/framework/fling-curve.dart
index 6a476d7085eb2c0a06d505a232b9615e6390aff5..3a9f54f4a54d03f8476bde7a322e03564db72d0e 100644
--- a/sky/framework/fling-curve.dart
+++ b/sky/framework/fling-curve.dart
@@ -36,7 +36,7 @@ class FlingCurve {
FlingCurve(double velocity, double startTime) {
double startingVelocity = math.min(_kMaxVelocity, velocity.abs());
- _timeOffset = _velocityAtTime(startingVelocity);
+ _timeOffset = _timeAtVelocity(startingVelocity);
_positionOffset = _positionAtTime(_timeOffset);
_startTime = startTime / 1000.0;
_previousPosition = 0.0;
« no previous file with comments | « no previous file | sky/framework/sky-drawer.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698