Skip to content

Commit cab7d93

Browse files
Fix the bouncing widget example
1 parent c7a2fcf commit cab7d93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/the_longer_you_press_the_widget_the_higher_it_hops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async def bounce_widget(widget, *, scale_x_max=3.0, gravity=0.2):
2727
# phase 1: Widget becomes wider and shorter while it being pressed.
2828
scale = Scale(origin=(widget.center_x, widget.y))
2929
ig.add(scale)
30-
async with ak.run_as_secondary(
30+
async with ak.run_as_daemon(
3131
ak.anim_attrs(scale, x=scale_x_max, y=1.0 / scale_x_max, duration=0.25 * scale_x_max)):
3232
await ak.event(widget, 'on_release')
3333

0 commit comments

Comments
 (0)