Skip to content

EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust

Keep the screen() helper's doc comment on screen() in ui_viewer tests

bflatastic8fde08d269be
diff --git a/crates/ui-egui/tests/it/ui_viewer.rs b/crates/ui-egui/tests/it/ui_viewer.rs
index e5f3590e6..0ab31237b 100644
--- a/crates/ui-egui/tests/it/ui_viewer.rs
+++ b/crates/ui-egui/tests/it/ui_viewer.rs
@@ -54,7 +54,6 @@ fn drag(h: &mut Harness<'_, EffectcraftApp>, from: Pos2, to: Pos2) {
h.run_steps(2);
}
-/// Comp pixel → screen point.
/// #1218: frame stepping is optional, and consumes the whole wheel gesture including its
/// smoothed tail. Ctrl/Cmd+wheel still zooms.
#[test]
@@ -114,6 +113,7 @@ fn mouse_wheel_zooms_by_default_without_stepping_frames() {
assert_ne!(h.state().ui.viewer.zoom, z0);
}
+/// Comp pixel → screen point.
fn screen(h: &Harness<'_, EffectcraftApp>, p: [f32; 2]) -> Pos2 {
let c = rect(h, "viewer.comp");
let z = c.width() / 640.0;