mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
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:
1 parent
2f45dd691f
commit
adaba2a34e
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user