On Wed, 2007-02-21 at 00:34 +0100, jiho wrote:
Typically this cannot be smaller than at least a few screen pixels for the snapping effect to be visually noticeable. How is this threshold computed/set currently?
I haven't worked with this code for quite a while, but here's what I remember (helped by src/display/canvas-grid.cpp)
Basically the grid ensures that there is always at least 8 pixels between grid lines. If there isn't at least 8, then it scales up to the major grid lines. If there is still too many is starts removing half of them until it satisfies the requirement.
--Ted
PS - Looking at this code now, it probably could be significantly optimized. It might be a fun project for someone who wants to get into the Inkscape display internals a little more.