don't swallow left/right scroll events in a midi region view when in internal edit...
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 22 Jun 2012 17:35:41 +0000 (17:35 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 22 Jun 2012 17:35:41 +0000 (17:35 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12822 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/midi_region_view.cc

index ce02bf01491667c6d9db80d373bfcc12fc4ab91c..2256412b8afe06dccc09d47745a9de05200c43a3 100644 (file)
@@ -680,7 +680,11 @@ MidiRegionView::scroll (GdkEventScroll* ev)
                change_velocities (true, fine, false, together);
        } else if (ev->direction == GDK_SCROLL_DOWN) {
                change_velocities (false, fine, false, together);
+       } else {
+               /* left, right: we don't use them */
+               return false;
        }
+
        return true;
 }