catch button release after track drag

This commit is contained in:
Paul Davis 2024-05-02 20:19:41 -06:00
parent 7afea7ec2b
commit 6370ddc984
1 changed files with 5 additions and 0 deletions

View File

@ -4283,6 +4283,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) {