redesign drag API to provide a bounding item, not just "trackview only"

This allows rubberband drags on both the main editor and the separate piano roll to wokr
correctly.
This commit is contained in:
Paul Davis 2024-02-21 22:18:51 -07:00
parent 3422ef5c3d
commit 96ccb96b3b
7 changed files with 59 additions and 61 deletions

View file

@ -226,7 +226,7 @@ MidiCueEditor::build_canvas ()
CANVAS_DEBUG_NAME (time_line_group, "cue time line group");
// used as rubberband rect
rubberband_rect = new ArdourCanvas::Rectangle (hv_scroll_group, ArdourCanvas::Rect (0.0, 0.0, 0.0, 0.0));
rubberband_rect = new ArdourCanvas::Rectangle (no_scroll_group, ArdourCanvas::Rect (0.0, 0.0, 0.0, 0.0));
rubberband_rect->hide();
rubberband_rect->set_outline_color (UIConfiguration::instance().color ("rubber band rect"));
rubberband_rect->set_fill_color (UIConfiguration::instance().color_mod ("rubber band rect", "selection rect"));