Skip to content

Button state is delayed with a custom Platform implementation #7193

Answered by tronical
ultimaweapon asked this question in Q&A
Discussion options

You must be logged in to vote

This might likely involve an animation. Are you calling duration_until_next_timer_update() before sleep (use the return value) and update_timers_and_animations() on loop wake-up?

see also https://docs.rs/slint/latest/slint/platform/index.html#functions and https://docs.rs/slint/latest/slint/struct.Window.html#method.has_active_animations - the latter to check if you need to re-schedule a redraw.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ultimaweapon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants