From bc947f667ad37fc8df9dc4e2d4d466e4f8fd264d Mon Sep 17 00:00:00 2001 From: Skyfuller1303 Date: Tue, 13 Oct 2026 20:10:38 +0200 Subject: [PATCH] refactor(ui): name the Move layer offset shown_layer_offset --- crates/ui-egui/src/canvas.rs | 2 +- crates/ui-egui/src/move_ui.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index db0efe31fa..15391e1a8f 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -4487,7 +4487,7 @@ pub(crate) fn layer_edges_rect(app: &PhotocraftApp, idx: usize) -> Option Vec { /// offset of the latest Move drag frame drawn ([`display_doc`]) when the layer moves with the drag, /// so its Layer Edges outline moves in lockstep with its pixels (#2413). `None` when it shows /// where it is. -pub(crate) fn shown_offset(app: &PhotocraftApp, doc: DocId, revision: u64, id: LayerId) -> Option<(i32, i32)> { +pub(crate) fn shown_layer_offset(app: &PhotocraftApp, doc: DocId, revision: u64, id: LayerId) -> Option<(i32, i32)> { let p = app.move_preview.as_ref().filter(|p| p.doc == doc && p.revision == revision && !p.floating && p.shown.is_some())?; if !p.moving.contains(&id) { return None;