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
..
2024-05-14 11:02:49 +02:00
2024-06-06 10:30:32 +02:00
2024-06-05 19:08:51 +02:00
2024-05-29 11:48:50 +02:00
2024-06-05 18:46:50 +02:00
2024-06-05 12:17:15 +02:00
2024-05-27 16:24:50 +02:00
2024-06-04 10:12:23 +02:00
2023-04-18 15:52:45 +02:00
2024-05-28 14:40:43 +02:00
2024-05-27 16:24:50 +02:00
2024-05-31 17:28:38 +02:00
2024-05-29 22:37:55 +02:00