Implement reactive-rendering for slider

This commit is contained in:
Héctor Ramón Jiménez 2024-10-22 00:45:36 +02:00
parent 97bcca0400
commit 3ba7c71e3f
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F
2 changed files with 162 additions and 134 deletions

View file

@ -1161,6 +1161,8 @@ async fn run_instance<P, C>(
}
if !redraw_queue.is_empty() {
// The queue should be fairly short, so we can
// simply sort all of the time.
redraw_queue.sort_by(
|(target_a, _), (target_b, _)| {
target_a.cmp(target_b).reverse()