projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e83301d
)
Arrow keys (playhead_x_to_grid()) should move the view along with it. This is more...
author
Ben Loftis
<ben@harrisonconsoles.com>
Tue, 8 May 2018 13:42:57 +0000
(08:42 -0500)
committer
Ben Loftis
<ben@harrisonconsoles.com>
Tue, 8 May 2018 13:45:22 +0000
(08:45 -0500)
gtk2_ardour/editor_ops.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/editor_ops.cc
b/gtk2_ardour/editor_ops.cc
index 7ac2e0839025c6e6afbc6434c3608e77f40dc44b..36a67d0a018810452ad65fad00105e1a1dc78bc9 100644
(file)
--- a/
gtk2_ardour/editor_ops.cc
+++ b/
gtk2_ardour/editor_ops.cc
@@
-7357,6
+7357,11
@@
Editor::playhead_forward_to_grid ()
snap_to_internal (pos, RoundUpAlways, SnapToGrid, false, true);
_session->request_locate (pos.sample);
}
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);
}
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
}
void