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(); |