diff view/View.cpp @ 510:683c46d7500b

* Handle zero-velocity note ons as well as note offs (can't believe I fell for that one) * Add Peek Left / Peek Right (alt+left/right) and change peek-drag (i.e. dragging without moving playback pointer or other panes) from ctrl+drag to alt+drag for symmetry
author Chris Cannam
date Thu, 26 Feb 2009 10:49:08 +0000
parents 08e1ccfe289c
children 455810e65543
line wrap: on
line diff
--- a/view/View.cpp	Wed Feb 25 17:41:34 2009 +0000
+++ b/view/View.cpp	Thu Feb 26 10:49:08 2009 +0000
@@ -1354,7 +1354,7 @@
 }
 
 void
-View::scroll(bool right, bool lots)
+View::scroll(bool right, bool lots, bool e)
 {
     long delta;
     if (lots) {
@@ -1365,11 +1365,11 @@
     if (right) delta = -delta;
 
     if (int(m_centreFrame) < delta) {
-	setCentreFrame(0);
+	setCentreFrame(0, e);
     } else if (int(m_centreFrame) - delta >= int(getModelsEndFrame())) {
-	setCentreFrame(getModelsEndFrame());
+	setCentreFrame(getModelsEndFrame(), e);
     } else {
-	setCentreFrame(m_centreFrame - delta);
+	setCentreFrame(m_centreFrame - delta, e);
     }
 }