From 25e5d0f9c0179f3edc009f3430ec147337c1436a Mon Sep 17 00:00:00 2001 From: bflatastic Date: Thu, 8 Oct 2026 17:14:18 +0700 Subject: [PATCH] Viewer: wrap the snap() doc comment (#253) Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/panels/viewer_tools.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/panels/viewer_tools.rs b/crates/ui-egui/src/panels/viewer_tools.rs index 5d19add5..d1ffc4db 100644 --- a/crates/ui-egui/src/panels/viewer_tools.rs +++ b/crates/ui-egui/src/panels/viewer_tools.rs @@ -35,8 +35,9 @@ pub(crate) fn snapping_on(app: &EffectcraftApp, mods: egui::Modifiers) -> bool { /// Snap dragged feature points (`sources`, comp pixels) to the comp's targets: other layers' /// edges, corners, centres, anchor points and mask/shape vertices and the comp edges and centre -/// (when snapping is on, as the Snapping options allow), guides (View ▸ Snap to Guides) and the grid (View ▸ Snap to Grid). Returns -/// the comp-space correction (zero when nothing is near) and records the feedback for this frame. +/// (when snapping is on, as the Snapping options allow), guides (View ▸ Snap to Guides) and the +/// grid (View ▸ Snap to Grid). Returns the comp-space correction (zero when nothing is near) and +/// records the feedback for this frame. pub(crate) fn snap( app: &EffectcraftApp, ctx: &egui::Context,