← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Fix drag when single item is selected


Le 20/11/2012 05:33, Younes Manton a écrit :
On Sat, 2012-11-10 at 17:24 -0500, Younes Manton wrote:
Because dragging is implemented as a simulated 1x1 block selection,
there's no way to pick out and drag a single item when multiple items

Currently the drag hotkey handler checks to see how many items are
under the mouse, let's the user select one via a popup menu if there
are more than one, and then throws that info away because it sets up a
1x1 block selection. The block selection finds all all items under the
cursor, and you end up dragging them all instead of the item you

This patch fixes that in the block selection code by checking if this
is currently a simulated drag (block command == drag and current
item != null) and returning the currently selected item, rather than
testing everything under the cursor and returning multiple items. This
seemed like the most straight-forward way to fix the issue and still
keep dragging as a simulated block selection.
Hi, any comment on this?

From your idea, I committed a change which should fix this issue.

Jean-Pierre CHARRAS