Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
571046a7
Commit
571046a7
authored
Mar 16, 2016
by
Ian Hickson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanup in newton
parent
9129891e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
scroll_simulation.dart
packages/newton/lib/src/scroll_simulation.dart
+1
-1
simulation.dart
packages/newton/lib/src/simulation.dart
+1
-1
No files found.
packages/newton/lib/src/scroll_simulation.dart
View file @
571046a7
...
...
@@ -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
;
...
...
packages/newton/lib/src/simulation.dart
View file @
571046a7
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment