Snap-to-Point Fails When Occluded by Non-Snappable Objects (e.g., Text)
-
Description:
When using Snap to Point in VectorStyler, objects do not snap as expected if a non-snappable object (e.g., text) is visually on top—even if the target object underneath has snapping enabled.Steps to Reproduce:
Draw Rectangle A. Create a text object and place it in front of Rectangle A. Draw Rectangle B and enable "Allow Snapping" on it. Enable "Snap to Point" globally. Drag Rectangle B toward Rectangle A (through the text object).
Expected Behavior:
Rectangle B should snap to the corners or edges of Rectangle A.Observed Behavior:
Snapping does not occur. Rectangle B floats freely.Workaround:
Send the text object to the back. Snapping resumes as expected.Notes:
This behavior is unintuitive. The presence of non-snapping objects should not block snapping to eligible targets behind them. "Snap to Object" does not exhibit this issue and works even with the text present.
Suggested Fixes:
Allow snap-through behavior where snap targets are detected even if they’re behind non-snapping objects. Or provide a snap priority system that can skip over non-snappable elements.
-
@jpsimmons I could not replicate this, using the steps described.
Maybe a recording and an example file might help.
-
I have a problem reproducing it from a clean file. I have a somewhat complicated file where it shows up. May be a memory issue. I'll try to reproduce on something cleaner and resubmit if I can. Thanks.