Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1176)

Unified Diff: sky/framework/components/drawer.dart

Issue 1013713005: Cleanup events related to material splashes (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/framework/components/drawer.dart
diff --git a/sky/framework/components/drawer.dart b/sky/framework/components/drawer.dart
index 2336a8de527a016116d56a349de5ab90515e97d6..77a36a98c8bd0b3b48bbee26009cd2076dda28c0 100644
--- a/sky/framework/components/drawer.dart
+++ b/sky/framework/components/drawer.dart
@@ -34,7 +34,8 @@ class DrawerAnimation extends Animation {
void handlePointerDown(_) => stop();
void handlePointerMove(sky.PointerEvent event) {
- assert(!isAnimating);
+ if (isAnimating)
+ return;
value = math.min(0.0, math.max(value + event.dx, -_kWidth));
}

Powered by Google App Engine
This is Rietveld 408576698