PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Merge upstream main into CPU pixel alignment fix
JGF2c8929d80109
diff --cc crates/ui-egui/src/canvas.rsindex db8a44bcc,5f1dd941c..0648ad47c--- a/crates/ui-egui/src/canvas.rs+++ b/crates/ui-egui/src/canvas.rs@@@ -4045,9 -4024,13 +4062,13 @@@ pub fn canvas_view(app: &mut Photocraftctx.request_repaint();}}- let xf = if crop_camera { ViewXform { center: view.center, rotation: view.rotation, ..xf } } else { xf };+ let xf = if crop_camera { ViewXform { center: view.center, rotation: view.rotation, ..xf }.pixel_aligned_for(app, ppp) } else { xf };let (img_rect, beyond, layer_edges) = painted.unwrap_or_else(|| paint_canvas(app, ui, &view, xf));- if primary && !(hand_pan && response.dragged()) {+ // A Hand drag (the tool, Space or the middle button) keeps every overlay on screen, as in+ // Photoshop: the Pen path being drawn, paths, guides, grid, transform box (#6592). Only the+ // tool cursors below give way to the fist.+ let panning = hand_pan && response.dragged();+ if primary {// The transform preview is image content: it goes under the grid and guides, which// stay visible across a layer being transformed (#5086); the box is drawn later.crate::transform_tool::draw_content(app, &painter, &xf);