Commit c8126288 authored by Ian Hickson's avatar Ian Hickson

Merge pull request #1024 from Hixie/transform

Catch dismissable while it's animating.
parents a141fa75 5d9d5217
......@@ -139,12 +139,15 @@ class _DismissableState extends State<Dismissable> {
}
void _handleDragStart(_) {
if (_dismissPerformance.isAnimating)
return;
setState(() {
_dragUnderway = true;
_dragExtent = 0.0;
_dismissPerformance.progress = 0.0;
if (_dismissPerformance.isAnimating) {
_dragExtent = _dismissPerformance.progress * _size.width * _dragExtent.sign;
_dismissPerformance.stop();
} else {
_dragExtent = 0.0;
_dismissPerformance.progress = 0.0;
}
});
}
......
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