Snap when dragging guides should be focused on the pointer

Bug #181020 reported by Guillermo Espertino (Gez)
4
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Diederik van Lierop

Bug Description

Currently, every object in the length of the guideline affects the snapping. It should be useful to have a "snapping zone" in that case, so the snapping is performed only on objects that are in the pointer area.
When someone wants to snap -for example- a guide to a rectangle edge, he/she will drag the pointer from the ruler to the edge of the target object. The user tends to "point" the target edge-node, so snapping to every object that intersects the guide, despite its location is in my oppinion less effective and prone to errors (because more objects will have influence over the snapping at the same time).

Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

Yes, this would indeed give more control! I'll start working on it right away :-)

Changed in inkscape:
assignee: nobody → mail-diedenrezi
status: New → Confirmed
Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

Done in rev #16989: When snapping a guide, now only the part of the guide near the pointer is considered (depends on amount of snapping tolerance)

Changed in inkscape:
status: Confirmed → Fix Released
Revision history for this message
Guillermo Espertino (Gez) (gespertino-gmail) wrote : Re: [Bug 181020] Re: Snap when dragging guides should be focused on the pointer

Diederik, wow that was fast!!!
Thank you very much for your inmediate response.
I've been trying the new feature and works very well.
I just noticed it snaps to nodes only, not to edges. It would be better
if edges are considered too (if snap to edges is active, of course).
The current behavior could make the user think that guides snapping is
not working (if the pointer isn't near a node).

Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

Agreed, but considering edges would require code to find the tangents of lines and Bezier curves, which is more complicated than just finding the distance of a point to a line (which we do now). It's not available in the 2geom libraries, and I don't know if there are plans for such a thing. That's why we currently only snap points to lines/curves, and it will probably stay like that for quite some time to come :-(

Revision history for this message
Guillermo Espertino (Gez) (gespertino-gmail) wrote :

Oh, ok. I understand.
In that case I think that just changing the description of the feature
in the guides preferences to something like"snap guides to points when
dragging" would prevent misunderstandings.

Thanks again for your work.

Diederik van Lierop escribió:
> Agreed, but considering edges would require code to find the tangents of
> lines and Bezier curves, which is more complicated than just finding the
> distance of a point to a line (which we do now). It's not available in
> the 2geom libraries, and I don't know if there are plans for such a
> thing. That's why we currently only snap points to lines/curves, and it
> will probably stay like that for quite some time to come :-(
>
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.