From adaba2a34e67d315aabb397a2ccb4375263aeaf3 Mon Sep 17 00:00:00 2001 From: Kaedo17 <92620393+Kaedo17@users.noreply.github.com> Date: Mon, 9 Nov 2026 12:45:29 +0800 Subject: [PATCH] style: split the glide-choice assignment for rustfmt cargo fmt --all -- --check on the merge commit flags only the glide_scroll_all assignment added by the conflict resolution: the merge produced it as one long line, and rustfmt wants the call on its own line. No behaviour change (cloutier, #9841). --- crates/ui-egui/src/canvas.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index 0c96401fa7..c6ff22853f 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -2228,7 +2228,8 @@ pub fn canvas_view(app: &mut PhotocraftApp, ui: &mut egui::Ui, idx: usize, rect: let scroll_source = crate::scroll_all_windows::source(app, idx); // A glide keeps the drag's choice after Space, Shift or the button is let go; a menu-dismissal // press is no pan, so it neither arms the glide nor moves the other views. - let glide_scroll_all = crate::scroll_all_windows::glide_choice(&ctx, flick_id.with("scroll-all"), hand_drag && !stroke_dismissal && !menu_dismiss_press, scroll_all); + let glide_scroll_all = + crate::scroll_all_windows::glide_choice(&ctx, flick_id.with("scroll-all"), hand_drag && !stroke_dismissal && !menu_dismiss_press, scroll_all); if let Some(d) = crate::flick_pan::frame(&ctx, flick_id, hand_drag && !stroke_dismissal && !menu_dismiss_press, response.drag_delta(), flick_on) { let d = xf.unmap_vec(d) / (view.zoom / ppp); let before = view.center;