Canvas: filter_event_before_tool's doc names the axis lock too

This commit is contained in:
RickiNano committed 2026-11-06 17:49:51 +01:00
1 parent 33afe59583
commit 6ddfe56705
1 file changed
+2 -2
+2 -2
View File
@@ -112,8 +112,8 @@ fn preflight_tool_event(app: &mut PhotocraftApp, ev: ToolEvent, mods: egui::Modi
/// The handlers a pointer event meets before the tool: dropping a floating piece the press won't
/// drag, snapping, and the overlays and modifier gestures (Free Transform, sticky keys, brush
/// resize, the ⌥ eyedropper, path and shape widgets…) that take the event for themselves. `None`:
/// one of them handled it; otherwise the event before and after snapping, and the modifiers
/// with the sticky keys applied.
/// one of them handled it; otherwise the event as it came and as filtered (snapped, the Move
/// tool's axis lock), and the modifiers with the sticky keys applied.
fn filter_event_before_tool(app: &mut PhotocraftApp, ev: ToolEvent, mods: egui::Modifiers, armed: bool) -> Option<(ToolEvent, ToolEvent, egui::Modifiers)> {
// View › Snap / Snap To and smart guides (snap_ui.rs).
let raw = ev;