1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Update to r13516 to also deal with horizontal movement. Toolbars should now dock where you undocked them from, if you don't move them.

Thanks to Gale for a very clear description of the issue, which I hadn't seen because of how I click/drag.
This commit is contained in:
james.k.crook@gmail.com 2014-11-01 23:26:52 +00:00
parent 1f4dda607e
commit 72038d0e06

View File

@ -1029,7 +1029,9 @@ void ToolManager::OnMouse( wxMouseEvent & event )
// Add half the bar height. We could use the actual bar height, but that would be confusing as a // Add half the bar height. We could use the actual bar height, but that would be confusing as a
// bar removed at a place might not dock back there if just let go. // bar removed at a place might not dock back there if just let go.
pos += wxPoint( 0, 20 ); // Also add 5 pixels in horizontal direction, so that a click without a move (or a very small move)
// lands back where we started.
pos += wxPoint( 5, 20 );
// Is mouse pointer within either dock? // Is mouse pointer within either dock?
ToolDock *dock = NULL; ToolDock *dock = NULL;