click (no drag) on markers locates there, unless using marker as edit point
This commit is contained in:
parent
3f14b27ee3
commit
f9a121ce9c
@ -1780,6 +1780,8 @@ private:
|
||||
|
||||
void mid_tempo_change (MidTempoChanges);
|
||||
|
||||
Editing::EditPoint edit_point() const { return _edit_point; }
|
||||
|
||||
protected:
|
||||
void _commit_tempo_map_edit (Temporal::TempoMap::WritableSharedPtr&, bool with_update = false);
|
||||
|
||||
|
@ -4637,7 +4637,7 @@ MarkerDrag::finished (GdkEvent* event, bool movement_occurred)
|
||||
}
|
||||
|
||||
/* just a click, do nothing but finish
|
||||
off the selection process
|
||||
off the selection process (and locate if appropriate)
|
||||
*/
|
||||
|
||||
Selection::Operation op = ArdourKeyboard::selection_type (event->button.state);
|
||||
@ -4666,6 +4666,14 @@ MarkerDrag::finished (GdkEvent* event, bool movement_occurred)
|
||||
_editor->commit_reversible_selection_op ();
|
||||
}
|
||||
|
||||
if (_editor->edit_point() != Editing::EditAtSelectedMarker) {
|
||||
bool is_start;
|
||||
Location* location = _editor->find_location_from_marker (_marker, is_start);
|
||||
if (location) {
|
||||
_editor->session ()->request_locate (is_start ? location->start().samples() : location->end().samples());
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user