egui/crates/eframe/src
Jan Procházka 3d632cd333
Move first `request_animation_frame` into resize observer (#4628)
This PR ensures the first animation frame happens _after_ the resize
observer has had a chance to do its job.

* Closes https://github.com/emilk/egui/issues/4622

The first commit contains some `log` calls to observe the changed
behavior:

Before:
```
[eframe::web::app_runner] eframe/src/web/app_runner.rs:191: LOGIC [300.0 150.0]
[eframe::web::events] eframe/src/web/events.rs:633: ResizeObserver canvas=[300.0 150.0] to=(1920, 993)
[eframe::web::app_runner] eframe/src/web/app_runner.rs:191: LOGIC [1920.0 993.0]
[eframe::web::app_runner] eframe/src/web/app_runner.rs:191: LOGIC [1920.0 993.0]
```

After:
```
[eframe::web::events] eframe/src/web/events.rs:633: ResizeObserver canvas=[300.0 150.0] to=(1920, 993)
[eframe::web::app_runner] eframe/src/web/app_runner.rs:191: LOGIC [1920.0 993.0]
[eframe::web::app_runner] eframe/src/web/app_runner.rs:191: LOGIC [1920.0 993.0]
```
2024-06-06 10:30:32 +02:00
..
native Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
web Move first `request_animation_frame` into resize observer (#4628) 2024-06-06 10:30:32 +02:00
epi.rs Enforce eframe errors are `Send` and `Sync` (#4574) 2024-05-29 13:13:00 +02:00
icon_data.rs Update `image` crate to 0.25 (#4160) 2024-05-13 13:35:15 +02:00
lib.rs Enforce eframe errors are `Send` and `Sync` (#4574) 2024-05-29 13:13:00 +02:00
stopwatch.rs Much more accurate `cpu_usage` timing (#3913) 2024-01-29 19:12:16 +01:00