From 8fde08d269be65b40a3d7986409206b95adc8fe9 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Fri, 30 Oct 2026 13:34:05 +0700 Subject: [PATCH] Keep the screen() helper's doc comment on screen() in ui_viewer tests Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/tests/it/ui_viewer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;