Popup context menu disrupts drag operations

Bug #664631 reported by Stratadrake
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Krzysztof Kosinski

Bug Description

In Windows Inkscape 0.48:

1 - Place any convenient object on canvas.
2 - Click on it with the Selector.
3 - Click on a scaling handle and begin dragging.
4 - During the drag, also click right mouse button.

The result is the context menu appears, but the drag operation is still considered "active" -- releasing mouse button doesn't complete it (i.e. selection tracks mouse without any buttons pressed), and you have to click the mouse button again to complete the drag.

The behavior varies slightly depending on the tool/selection and operation performed:
A - With Selector, dragging the object itself: Drag operation cancels before the popup menu appears
B - With Selector, dragging transform handles: Drag operation is still active when the context menu appears
C - Node tool, dragging selected nodes: Drag operation still active
D- Node tool, dragging transform handles: Drag operation still active

In the last case I have also noticed a tendency for Inkscape to leave visual clutter (bounding box outlines) behind after the drag operation, which persists through repaint operations (scrolling document, resizing window, etc.) . On two occasions, this has even led to a crash.

I haven't been able to isolate or reproduce the crash "on-demand" yet, but attached is a simple screenshot showing the visual clutter left behind at the time of crash. The selected object was a simple path drawn using the Pen tool, but notice the appearance of many bounding boxes and the strange location of the transform handles.

Revision history for this message
Stratadrake (strata-ranger) wrote :
Revision history for this message
Stratadrake (strata-ranger) wrote :

I've attached a sample file for demonstration purposes that may be able to reproduce the crash (at least on my end, Windows + Inkscape 0.48) .

1 - Open file. Switch to the Node tool and enable transform handles for nodes.
2 - Click on the path, and click/drag to select only the inner nodes (highlighted by rectangle) from the path.
3 - Click on the bottom scale handle and begin dragging somewhere. Down, up, doesn't matter.
4 - While dragging, click the right mouse button to summon context menu. Release both buttons without selecting a command from the menu.
5 - Left-click to dismiss the context menu -- selection now tracks mouse movement with no buttons held. Move the nodes back to their original location and click to complete the drag.
6 - Press Escape to dismiss all selections. There may be visual clutter left behind, a phantom bounding box drawn around two or more nodes of the path.
7 - Select path with Node tool, and select the same nodes again. Notice the bottom transform handle is missing.
8 - Click on a different transform handle and Inkscape crashes with a runtime error.

Changed in inkscape:
status: New → Confirmed
assignee: nobody → Krzysztof Kosinski (tweenk)
milestone: none → 0.48.1
importance: Undecided → Medium
status: Confirmed → Fix Committed
Revision history for this message
Krzysztof Kosinski (tweenk) wrote :

Fixed in r9710 of 0.48 branch. Right clicking while dragging control points does not summon the context menu anymore.

Revision history for this message
su_v (suv-lp) wrote :

Fixed in trunk in revision 9869.

jazzynico (jazzynico)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.