summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mixer.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-01-31 18:51:33 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-01-31 18:51:33 +0000
commitdf1c4dddc39d1cc5132501afb94bbabb9935cc32 (patch)
tree41ea78314c31f174d0da099c36f76b4c553a2287 /gtk2_ardour/editor_mixer.cc
parent1ab5012af74371379a5a35c3c43ecf05ed91645e (diff)
remove ardour_message.{cc,h}; JACK latency menu now shows correct settings at startup and changes are handled correctly; export range markers doesn't start with /path/to/export.wav, just /path/to; hopefully improve ruler scrolling a little; fixed up short_path() implementation ; fix for export unsetting JACK freewheel too soon ; use ISO 8061 timestamps for snapshot default names
git-svn-id: svn://localhost/ardour2/trunk@1400 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mixer.cc')
-rw-r--r--gtk2_ardour/editor_mixer.cc25
1 files changed, 25 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_mixer.cc b/gtk2_ardour/editor_mixer.cc
index 13eafe1602..d1dd8be7fa 100644
--- a/gtk2_ardour/editor_mixer.cc
+++ b/gtk2_ardour/editor_mixer.cc
@@ -193,6 +193,31 @@ Editor::update_current_screen ()
}
playhead_cursor->set_position (frame);
+
+#undef CONTINUOUS_SCROLL
+#ifdef CONTINUOUS_SCROLL
+
+ /* don't do continuous scroll till the new position is in the rightmost quarter of the
+ editor canvas
+ */
+
+#if 0
+ if (frame > leftmost_frame + (3 * current_page_frames() / 4)) {
+
+ if (frame > playhead_cursor->current_frame) {
+ nframes_t delta = frame - playhead_cursor->current_frame;
+ horizontal_adjustment.set_value (horizontal_adjustment.get_value() + (delta/frames_per_unit));
+ } else {
+ nframes_t delta = playhead_cursor->current_frame - frame;
+ horizontal_adjustment.set_value (horizontal_adjustment.get_value() - (delta/frames_per_unit));
+ }
+ }
+#else
+ horizontal_adjustment.set_value (frame / frames_per_unit);
+#endif
+
+#endif // CONTINUOUS_SCROLL
+
}
} else {