The following test case should animate the progress property of the Spinner, but somehow it... doesn't:
import { Spinner } from "std-widgets.slint";
export component Demo {
spinner := Spinner {
animate progress {
duration: 3s;
}
}
TouchArea {
clicked => {
spinner.progress = 0.5;
}
}
}
testcase
Going through an intermediate property works:
import { Spinner } from "std-widgets.slint";
export component Demo {
spinner := Spinner {
property <float> p;
animate p {
duration: 3s;
}
progress: p;
}
TouchArea {
clicked => {
spinner.p = 0.5;
}
}
}
The following test case should animate the progress property of the Spinner, but somehow it... doesn't:
testcase
Going through an intermediate property works: