Commit 2c5c4538 authored by Hans Muller's avatar Hans Muller

Reset the Dimissable fade animation on slow flings

parent 5183eb9b
......@@ -150,11 +150,14 @@ class Dismissable extends StatefulComponent {
if (!_isActive)
return EventDisposition.ignored;
_dragUnderway = false;
if (_isHorizontalFlingGesture(event)) {
_dragUnderway = false;
_dragX = event.velocityX.sign;
_fadePerformance.fling(velocity: event.velocityX.abs() * _kFlingVelocityScale);
} else {
_fadePerformance.reverse();
}
return EventDisposition.processed;
}
......
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