Commit 1f7b9229 authored by Hans Muller's avatar Hans Muller

Merge pull request #623 from HansMuller/dismissable-bug

Reset the Dimissable fade animation on slow flings
parents 1a8f4e36 2c5c4538
......@@ -150,11 +150,14 @@ class Dismissable extends StatefulComponent {
if (!_isActive)
return EventDisposition.ignored;
if (_isHorizontalFlingGesture(event)) {
_dragUnderway = false;
if (_isHorizontalFlingGesture(event)) {
_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