13
0

tempo mapping (like all other drags) must use button1 only

Without this, Editor::button_release_handler() will handle a button3 press
without checking for an active drag, resulting in two drags, and two reversible
commands, and an abort ...
This commit is contained in:
Paul Davis 2023-10-03 16:00:35 -06:00
parent 364c892c68
commit 945ce377aa

View File

@ -1293,10 +1293,13 @@ Editor::canvas_grid_zone_event (GdkEvent* event)
GdkEventScroll scroll;
ArdourCanvas::Duple winpos;
switch (event->type) {
case GDK_BUTTON_PRESS:
choose_mapping_drag (_canvas_grid_zone, event);
if (event->button.button == 1) {
choose_mapping_drag (_canvas_grid_zone, event);
}
break;
case GDK_BUTTON_RELEASE: