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).
This commit is contained in:
Kaedo17 committed 2026-11-09 12:45:29 +08:00
1 parent 2f45dd691f
commit adaba2a34e
1 file changed
+2 -1
+2 -1
View File
@@ -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;