Guides story: the drag travels a quarter of the canvas

This commit is contained in:
aiongg
2026-11-20 03:01:25 +00:00
parent 2e70718e57
commit 90e6fc41d1
@@ -47,7 +47,7 @@ fn drag_out_of_the_top_ruler(fixture: &mut Fixture) {
let Some(canvas) = fixture.by_role(Role::CANVAS).first().map(|target| target.rect) else { return };
// Inside the top strip, clear of the corner.
let from = egui::pos2(canvas.center().x, canvas.min.y + 4.0);
fixture.drag_at(from, Vec2::new(0.0, 120.0));
fixture.drag_at(from, Vec2::new(0.0, canvas.height() / 4.0));
}
#[story(Guides<'static>, covers = [Default], drive = Drive::Custom(drag_out_of_the_top_ruler))]