mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
retain selection on track-height change
This commit is contained in:
parent
a1039ecd42
commit
45b7a03b7b
2 changed files with 14 additions and 6 deletions
|
|
@ -98,6 +98,7 @@ TimeAxisView::TimeAxisView (ARDOUR::Session* sess, PublicEditor& ed, TimeAxisVie
|
||||||
, _order (0)
|
, _order (0)
|
||||||
, _effective_height (0)
|
, _effective_height (0)
|
||||||
, _resize_drag_start (-1)
|
, _resize_drag_start (-1)
|
||||||
|
, _did_resize (false)
|
||||||
, _preresize_cursor (0)
|
, _preresize_cursor (0)
|
||||||
, _have_preresize_cursor (false)
|
, _have_preresize_cursor (false)
|
||||||
, _ebox_release_can_act (true)
|
, _ebox_release_can_act (true)
|
||||||
|
|
@ -426,6 +427,7 @@ TimeAxisView::controls_ebox_motion (GdkEventMotion* ev)
|
||||||
int32_t const delta = (int32_t) floor (ev->y_root - _resize_drag_start);
|
int32_t const delta = (int32_t) floor (ev->y_root - _resize_drag_start);
|
||||||
_editor.add_to_idle_resize (this, delta);
|
_editor.add_to_idle_resize (this, delta);
|
||||||
_resize_drag_start = ev->y_root;
|
_resize_drag_start = ev->y_root;
|
||||||
|
_did_resize = true;
|
||||||
} else {
|
} else {
|
||||||
/* not dragging but ... */
|
/* not dragging but ... */
|
||||||
maybe_set_cursor (ev->y);
|
maybe_set_cursor (ev->y);
|
||||||
|
|
@ -484,6 +486,11 @@ TimeAxisView::controls_ebox_button_release (GdkEventButton* ev)
|
||||||
}
|
}
|
||||||
_editor.stop_canvas_autoscroll ();
|
_editor.stop_canvas_autoscroll ();
|
||||||
_resize_drag_start = -1;
|
_resize_drag_start = -1;
|
||||||
|
if (_did_resize) {
|
||||||
|
_did_resize = false;
|
||||||
|
// don't change selection
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_ebox_release_can_act) {
|
if (!_ebox_release_can_act) {
|
||||||
|
|
|
||||||
|
|
@ -297,6 +297,7 @@ private:
|
||||||
int _order;
|
int _order;
|
||||||
uint32_t _effective_height;
|
uint32_t _effective_height;
|
||||||
double _resize_drag_start;
|
double _resize_drag_start;
|
||||||
|
bool _did_resize;
|
||||||
GdkCursor* _preresize_cursor;
|
GdkCursor* _preresize_cursor;
|
||||||
bool _have_preresize_cursor;
|
bool _have_preresize_cursor;
|
||||||
bool _ebox_release_can_act;
|
bool _ebox_release_can_act;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue