mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Disable follow-playhead during drags. Fixes #3647.
git-svn-id: svn://localhost/ardour2/branches/3.0@8444 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d13cb3bd40
commit
85acf35337
5 changed files with 17 additions and 4 deletions
|
|
@ -3637,11 +3637,14 @@ Editor::toggle_follow_playhead ()
|
|||
}
|
||||
}
|
||||
|
||||
/** @param yn true to follow playhead, otherwise false.
|
||||
* @param catch_up true to reset the editor view to show the playhead (if yn == true), otherwise false.
|
||||
*/
|
||||
void
|
||||
Editor::set_follow_playhead (bool yn)
|
||||
Editor::set_follow_playhead (bool yn, bool catch_up)
|
||||
{
|
||||
if (_follow_playhead != yn) {
|
||||
if ((_follow_playhead = yn) == true) {
|
||||
if ((_follow_playhead = yn) == true && catch_up) {
|
||||
/* catch up */
|
||||
reset_x_origin_to_follow_playhead ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue