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

Unified Diff: sky/examples/fn/widgets/material.dart

Issue 975863003: Don't hardcode the list of events types in fn (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: More careful event syncing Created 5 years, 10 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
« no previous file with comments | « sky/examples/fn/widgets/icon.dart ('k') | sky/examples/fn/widgets/menuitem.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/fn/widgets/material.dart
diff --git a/sky/examples/fn/widgets/material.dart b/sky/examples/fn/widgets/material.dart
index 0260705a0bdffc10b1b1642801a82ed784bfef18..2d38a511dc70db0d9d056f8c93bb6e9f34db5398 100644
--- a/sky/examples/fn/widgets/material.dart
+++ b/sky/examples/fn/widgets/material.dart
@@ -26,12 +26,11 @@ abstract class MaterialComponent extends Component {
return new Container(
style: _style,
- onScrollStart: _cancelSplashes,
- onWheel: _cancelSplashes,
- onPointerDown: _startSplash,
children: children,
key: _splashesKey
- );
+ )..events.listen('gesturescrollstart', _cancelSplashes)
+ ..events.listen('wheel', _cancelSplashes)
+ ..events.listen('pointerdown', _startSplash);
}
sky.ClientRect _getBoundingRect() => getRoot().getBoundingClientRect();
« no previous file with comments | « sky/examples/fn/widgets/icon.dart ('k') | sky/examples/fn/widgets/menuitem.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698