Commit 571046a7 authored by Ian Hickson's avatar Ian Hickson

Minor cleanup in newton

parent 9129891e
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment