summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mixer.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@glw.com>2009-05-22 19:47:07 +0000
committerBen Loftis <ben@glw.com>2009-05-22 19:47:07 +0000
commitbeef5e20ce6402e55c974d6126db8db6c7a13d7c (patch)
treeae9e47c8e767fc6677168d117e77132fe321b943 /gtk2_ardour/editor_mixer.cc
parent28f46b7f2cba64c3d5e34f39d7be45600dde3a58 (diff)
make stationary-playhead mode less secret
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5111 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mixer.cc')
-rw-r--r--gtk2_ardour/editor_mixer.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_mixer.cc b/gtk2_ardour/editor_mixer.cc
index de0a27c687..a7d9a701a6 100644
--- a/gtk2_ardour/editor_mixer.cc
+++ b/gtk2_ardour/editor_mixer.cc
@@ -242,8 +242,7 @@ Editor::update_current_screen ()
if (frame != last_update_frame) {
-#undef CONTINUOUS_SCROLL
-#ifndef CONTINUOUS_SCROLL
+ if ( !_stationary_playhead ) {
if (frame < leftmost_frame || frame > leftmost_frame + current_page_frames()) {
#ifdef DEBUG_CURRENT_SCREEN
@@ -262,7 +261,7 @@ Editor::update_current_screen ()
playhead_cursor->set_position (frame);
-#else // CONTINUOUS_SCROLL
+ } else {
/* don't do continuous scroll till the new position is in the rightmost quarter of the
editor canvas
@@ -283,7 +282,7 @@ Editor::update_current_screen ()
playhead_cursor->set_position (frame);
-#endif // CONTINUOUS_SCROLL
+ }
}