Implement reactive-rendering for slider
This commit is contained in:
parent
97bcca0400
commit
3ba7c71e3f
2 changed files with 162 additions and 134 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue