mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Fix animation-tick()
to register that there are running animation
This commit is contained in:
parent
211aaf1dd8
commit
30f95e3aca
5 changed files with 13 additions and 4 deletions
|
@ -2070,7 +2070,7 @@ fn compile_builtin_function_call(
|
|||
let window_tokens = access_window_field(ctx);
|
||||
quote!(#window_tokens.scale_factor())
|
||||
}
|
||||
BuiltinFunction::AnimationTick => quote!(slint::re_exports::current_tick().0),
|
||||
BuiltinFunction::AnimationTick => quote!(slint::re_exports::animation_tick()),
|
||||
BuiltinFunction::Debug => quote!(slint::internal::debug(#(#a)*)),
|
||||
BuiltinFunction::Mod => quote!((#(#a as f64)%*)),
|
||||
BuiltinFunction::Round => quote!((#(#a)* as f64).round()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue