iris: drive animation from painter frame time
This commit is contained in:
1 parent
9fe6aca1f1
commit
b1416d86bf
19 files changed
+171
-133
No files matched your search
@@ -138,8 +138,6 @@ fn what_a_fling_uploads() {
|
||||
for pass in 0..PASSES {
|
||||
let velocity = if pass % 2 == 0 { VELOCITY } else { -VELOCITY };
|
||||
(opened.screen.list)(&mut h.rsc).fling(velocity);
|
||||
let id = opened.screen.list.id();
|
||||
h.rsc.ui.animate(id);
|
||||
let end = t + PASS_CAP_MS;
|
||||
while t <= end {
|
||||
t += PHONE_FRAME_MS;
|
||||
|
||||
Reference in new issue
Block a user