drag object deadzone changes which object is dragged
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Medium
|
Unassigned |
Bug Description
Preliminaries:
Go to Inkscape Preferences -> Mouse
Turn down Grab Sensitivity to 0.
Turn up Click/Drag Threshold to 20.
These steps aren't necessary, but they make the bug easier to reproduce.
To reproduce:
Draw a rectangle.
Draw a rectangle, with one edge touching the first rectangle's edge with minimal or no overlap. You'll end up with two rectangles next to each other.
Click once on the very limit of the second rectangle's edge where it touches the first rectangle's edge. Notice that the second rectangle is selected; your mouse is positioned over the second rectangle.
Without moving your mouse, click and hold down, then drag your mouse over to the first rectangle.
Notice that the first rectangle is moving, even though you clearly dragged the second rectangle.
I'm guessing that this bug also affects anything else that uses the deadzone, not just the drag function. The most obvious explanation is that at the moment of starting to move the object, Inkscape figures out what is below the mouse cursor, when it should instead be using the original click point. However, if you reproduce the bug without creating the first rectangle, the second rectangle will be dragged even though the cursor is located over nothing when the dragging starts.
tags: | added: bug-migration |
Sorry, let me revise the reproduction instructions:
____
To reproduce:
Draw a rectangle.
Draw a rectangle, with one edge touching the first rectangle's edge with minimal or no overlap. You'll end up with two rectangles next to each other.
Using the select tool, click once on the very limit of the second rectangle's edge where it touches the first rectangle's edge. Notice that the second rectangle is selected; your mouse is positioned over the second rectangle.
Without moving your mouse, click and hold down, then drag your mouse over to the first rectangle.
___
I forgot to note the usage of the select tool.