← Back to team overview

kicad-developers team mailing list archive

Re: [eeschema/question] use mouse position instead of custom position for selecting objects?


Le 22/03/2019 à 15:03, Tomasz Wlostowski a écrit :
> On 22/03/2019 13:43, Wayne Stambaugh wrote:
>> Tom,
>> AFAIR, the cursor position was always used in order to keep everything
>> on grid.  Since there has never been connection snapping in Eeschema,
>> the grid is the only way to ensure connections.
> Hi Wayne,
> I want to use mouse position only to grab items (so that off-grid items
> can be grabbed easily, it's next to impossible to do that now). Then we
> would switch to cursor position, so the moving item is re-aligned to grid.
> Cheers,
> Tom

>From my POV, using the mouse position *only* is as bad as use graphic
cursor pos only, especially for wires, that have a very small width, and
can be hard to locate on the mouse cursor.
Most of wire are on the grid, so they must be easy to locate.

SCH_EDIT_FRAME::LocateAndShowItem uses both:
First a search at graphic cursor pos is made.
If nothing found, a search at mouse cursor pos is made.

It should work fine for wires.

(unfortunately, it is not used in hotkeys to locate an item)

Jean-Pierre CHARRAS