mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-31 21:48:20 -06:00
Keep the screen() helper's doc comment on screen() in ui_viewer tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a2d44e1020
commit
8fde08d269
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user