GNOME Bugzilla – Bug 681746
Drag handle misplacemente in examples/drag-action
Last modified: 2012-08-27 15:47:24 UTC
Shift+click on the examples/drag-action square will position the drag handle under the mouse but, as soon as the mouse move the drag handle will be moved to position of the original actor. This is due to the fact that the coordinates of the press event that triggered the drag are always transformed with the main actor as reference, event if a drag-handle is set.
Created attachment 220985 [details] [review] drag-action: fix press coords transform with drag_handle When setting a drag handle, transform the original press coordinates using the drag handle as reference instead of the associated actor. This causes the initial misplacement of drag handle in example/drag-action when holding down the Shift key: the handle gets placed at the main actor origin on the first drag event, instead of following the mouse pointer. All subsequent motion events already use the right actor when transforming the coordinates, thus they are not affected.
Review of attachment 220985 [details] [review]: looks good, thanks for the patch!
Attachment 220985 [details] pushed as 59801ef - drag-action: fix press coords transform with drag_handle