diff view/ViewManager.cpp @ 815:09026c875301

Create separate play scroll modes for (Tony-style, DAW-style) page mode and (SV-style) paging with playhead alignment to centre on drag
author Chris Cannam
date Wed, 02 Jul 2014 17:30:09 +0100
parents 40c6c9344ff6
children d974ed657176
line wrap: on
line diff
--- a/view/ViewManager.cpp	Wed Jul 02 08:42:45 2014 +0100
+++ b/view/ViewManager.cpp	Wed Jul 02 17:30:09 2014 +0100
@@ -554,7 +554,7 @@
         if (v) emit viewCentreFrameChanged(v, f);
     }
 
-    if (!dynamic_cast<Overview *>(v) || (mode == PlaybackScrollContinuous)) {
+    if (!dynamic_cast<Overview *>(v) || (mode != PlaybackIgnore)) {
         if (m_mainModelSampleRate != 0) {
             emit activity(tr("Scroll to %1")
                           .arg(RealTime::frame2RealTime
@@ -562,11 +562,10 @@
         }
     }
 
-    if (mode != PlaybackScrollContinuous) {
-        return;
+    if (mode == PlaybackScrollPageWithCentre ||
+        mode == PlaybackScrollContinuous) {
+        seek(f);
     }
-
-    seek(f);
 }
 
 void