Format the files this pull request changes

This commit is contained in:
eliets2 committed 2026-11-07 00:16:45 +02:00
1 parent 19e6bb4b65
commit ccfb7b3022
1 file changed
+2 -1
+2 -1
View File
@@ -35,7 +35,8 @@ fn drag_near(h: &mut Harness<'static, MaterialCraftApp>, label: &str, index: usi
let rect = h.get_all(By::new().role(egui::accesskit::Role::Slider).label(label)).nth(index).unwrap().rect();
let start = pos2(rect.left() + rect.width() * 0.2, rect.center().y);
// Aim slightly off the exact value, within the half-physical-pixel snap range.
let target = pos2(rect.left() + 5.0 + (rect.width() - 10.0) * (value - lo) / (hi - lo) + AIM_OFFSET_PHYSICAL_PIXELS / h.ctx.pixels_per_point(), rect.center().y);
let target =
pos2(rect.left() + 5.0 + (rect.width() - 10.0) * (value - lo) / (hi - lo) + AIM_OFFSET_PHYSICAL_PIXELS / h.ctx.pixels_per_point(), rect.center().y);
h.event(Event::PointerMoved(start));
h.step();
h.event(Event::PointerButton { pos: start, button: PointerButton::Primary, pressed: true, modifiers: Modifiers::NONE });