mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 04:09:29 +01:00
Arrow keys (playhead_x_to_grid()) should move the view along with it. This is more consistent with jog-wheel operation, which has proven to work nicely.
This commit is contained in:
parent
e83301daaa
commit
a5d90c3d9d
1 changed files with 10 additions and 0 deletions
|
|
@ -7357,6 +7357,11 @@ Editor::playhead_forward_to_grid ()
|
|||
snap_to_internal (pos, RoundUpAlways, SnapToGrid, false, true);
|
||||
_session->request_locate (pos.sample);
|
||||
}
|
||||
|
||||
/* keep PH visible in window */
|
||||
if (pos.sample > (_leftmost_sample + current_page_samples() *0.9)) {
|
||||
reset_x_origin (pos.sample - (current_page_samples()*0.9));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -7374,6 +7379,11 @@ Editor::playhead_backward_to_grid ()
|
|||
snap_to_internal (pos, RoundDownAlways, SnapToGrid, false, true);
|
||||
_session->request_locate (pos.sample);
|
||||
}
|
||||
|
||||
/* keep PH visible in window */
|
||||
if (pos.sample < (_leftmost_sample + current_page_samples() *0.1)) {
|
||||
reset_x_origin (pos.sample - (current_page_samples()*0.1));
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue