Minor cleanup in newton

This commit is contained in:
Ian Hickson 2016-03-15 22:14:36 -07:00
parent 9129891e96
commit 571046a708
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class ScrollSimulation extends SimulationGroup {
if (_spring == null && (position > _trailingExtent || position < _leadingExtent))
return false;
/// This simulation can only step forward.
// This simulation can only step forward.
if (!_isSpringing) {
if (position > _trailingExtent) {
_isSpringing = true;

View File

@ -14,7 +14,7 @@ abstract class Simulation {
double x(double time);
/// The current velocity of the object in the simulation
double dx(double time); // TODO(ianh): remove this; see https://github.com/flutter/flutter/issues/2092
double dx(double time);
/// Returns if the simulation is done at a given time
bool isDone(double time);