Skip to content

Commit

Permalink
use timer for calllaterimpl
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Dec 13, 2023
1 parent c10e2e2 commit 4c5e45a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion haxe/ui/backend/CallLaterImpl.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
package haxe.ui.backend;

class CallLaterImpl {
public function new(fn:Void->Void) {
haxe.ui.util.Timer.delay(fn, 0);
}
}

/* this version seems to hold the main loop up - unsure why, but animations simply dont work - even though the props seem to be get set correctly
import flixel.FlxG;
class CallLaterImpl {
Expand All @@ -18,4 +25,5 @@ class CallLaterImpl {
fns.pop()();
}
}
}
}
*/

0 comments on commit 4c5e45a

Please sign in to comment.