From d064a2ead1a393dc789a86a945ab3e56d69e8280 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 11 Sep 2023 14:29:03 -0600 Subject: [PATCH] keep highlighted note in correct place when scrolling --- gtk2_ardour/piano_roll_header.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk2_ardour/piano_roll_header.cc b/gtk2_ardour/piano_roll_header.cc index aa38f8b2fc..5b678c887f 100644 --- a/gtk2_ardour/piano_roll_header.cc +++ b/gtk2_ardour/piano_roll_header.cc @@ -185,6 +185,8 @@ PianoRollHeader::on_scroll_event (GdkEventScroll* ev) } } + set_note_highlight (_view.y_to_note (ev->y)); + _adj.value_changed (); queue_draw (); return true;