Index: samples/swipe/web/swipe.dart |
diff --git a/samples/swipe/web/swipe.dart b/samples/swipe/web/swipe.dart |
index 8526edbc06e1574ca6cdc32d6a83633987aa609b..b413d6492c9008d670ca455e0d685af71d84d25c 100644 |
--- a/samples/swipe/web/swipe.dart |
+++ b/samples/swipe/web/swipe.dart |
@@ -74,7 +74,7 @@ void initialize3D() { |
num childCount = target.children.length; |
- window.setImmediate(() { |
+ scheduleMicrotask(() { |
num width = query("#target").client.width; |
figureWidth = (width / 2) ~/ tan(PI / childCount); |