13
0

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:
Ben Loftis 2018-05-08 08:42:57 -05:00
parent e83301daaa
commit a5d90c3d9d

View File

@ -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