13
0

catch button release after track drag

This commit is contained in:
Paul Davis 2024-05-02 20:19:41 -06:00
parent b515174e6a
commit c3fb69c385

View File

@ -4291,6 +4291,11 @@ Editor::override_visible_track_count ()
bool
Editor::edit_controls_button_event (GdkEventButton* ev)
{
if (ev->type == GDK_BUTTON_RELEASE && track_dragging()) {
end_track_drag ();
return true;
}
if ((ev->type == GDK_2BUTTON_PRESS && ev->button == 1) || (ev->type == GDK_BUTTON_RELEASE && Keyboard::is_context_menu_event (ev))) {
ARDOUR_UI::instance()->add_route ();
} else if (ev->button == 1 && ev->type == GDK_BUTTON_PRESS) {