double click to expand / contract the track

This commit is contained in:
Iurie Nistor 2020-07-11 11:42:58 +03:00 committed by Robin Gareus
parent f89ef872dd
commit 4e6a15938c
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -426,6 +426,14 @@ TimeAxisView::controls_ebox_button_press (GdkEventButton* event)
}
if (event->button == 1 && event->type == GDK_2BUTTON_PRESS) {
if (_effective_height < preset_height (HeightLargest)) {
set_height_enum (HeightLargest);
} else {
set_height_enum (HeightNormal);
}
}
_ebox_release_can_act = true;
if (maybe_set_cursor (event->y) > 0) {