Ignore scroll-wheel while dragging notes.
authorRobin Gareus <robin@gareus.org>
Thu, 9 Aug 2018 16:11:18 +0000 (18:11 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 9 Aug 2018 16:11:18 +0000 (18:11 +0200)
Previously, dragging a MIDI note and scrolling with scroll wheel
(to change velocity) made the note jump back to location before drag.

gtk2_ardour/midi_region_view.cc

index 75cf065e44e00d14a76e307d3881cb5010bbbef3..bf0595de75485dc18878bf9f44f390609933f0e1 100644 (file)
@@ -695,6 +695,9 @@ MidiRegionView::motion (GdkEventMotion* ev)
 bool
 MidiRegionView::scroll (GdkEventScroll* ev)
 {
+       if (trackview.editor().drags()->active()) {
+               return false;
+       }
        if (_selection.empty()) {
                return false;
        }