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

Unified Diff: samples/swarm/swarm_ui_lib/view/SliderMenu.dart

Issue 27441002: Removing setImmediate and hiding WindowTimers interface (take 2) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: The fix Created 7 years, 2 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 | « samples/swarm/swarm_ui_lib/view/PagedViews.dart ('k') | samples/swarm/swarm_ui_lib/view/view.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/swarm_ui_lib/view/SliderMenu.dart
diff --git a/samples/swarm/swarm_ui_lib/view/SliderMenu.dart b/samples/swarm/swarm_ui_lib/view/SliderMenu.dart
index a059a0c566575d8812a12c34e4991d1a08cbe53d..1db3914804ffab8d94c13cb8a74e9497b2451ccd 100644
--- a/samples/swarm/swarm_ui_lib/view/SliderMenu.dart
+++ b/samples/swarm/swarm_ui_lib/view/SliderMenu.dart
@@ -157,7 +157,7 @@ class SliderMenu extends View {
void updateIndicator(bool animate) {
if (selectedItem != null) {
// calculate where we want to put the triangle
- window.setImmediate(() {
+ scheduleMicrotask(() {
num x = selectedItem.offset.left +
selectedItem.offset.width / 2 - TRIANGLE_WIDTH / 2;
_moveIndicator(x, animate);
« no previous file with comments | « samples/swarm/swarm_ui_lib/view/PagedViews.dart ('k') | samples/swarm/swarm_ui_lib/view/view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698