Selection precision is off by 9 screen pixels
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Low
|
Unassigned |
Bug Description
To reproduce:
1. Draw two overlapping rectangles
2. Try and select the one behind by clicking on it near the edge of the rectangle in front.
3. Result: if you click on the rectangle behind within 9 screen pixels of the rectangle in front, the rectangle in front is instead selected.
This poses a major problem for selecting objects when zoomed out.
Solution: Select the object which is clicked on, not the object nearby it.
The only exception to this rule should be text blocks, which are difficult to select by clicking. This active area should only expand within the confines of the text box (so if you click near the text inside the box, it selects the text box, but if you click anywhere outside the text box, it does not.
Sample file attached: at 100% zoom It's impossible to select the blue rectangle without clicking outside of the blue rectangle, or using selection modifier keys, which makes selection in Inkscape clumsy at best in its current state.
Inkscape version info:
inkscape-trunk amd64 1:0.92.
This is not exactly a bug but is intended as a feature, see screenshot.
We should probably re-design the function to select the object that is nearest to the mouse cursor when multiple objects are within "grab distance" which might or might not be easy (depending on implementation).