mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-22 06:36:29 +01:00
avoid recursing through the entire canvas when scrolling - only scroll explicitly identified ScrollGroups
This commit is contained in:
parent
ff09ef3f60
commit
11e789df5b
3 changed files with 32 additions and 13 deletions
|
|
@ -66,12 +66,14 @@ Editor::initialize_canvas ()
|
|||
{
|
||||
_track_canvas_viewport = new ArdourCanvas::GtkCanvasViewport (horizontal_adjustment, vertical_adjustment);
|
||||
_track_canvas = _track_canvas_viewport->canvas ();
|
||||
_track_canvas->set_global_scroll (false);
|
||||
|
||||
hv_scroll_group = new ArdourCanvas::ScrollGroup (_track_canvas->root(),
|
||||
ArdourCanvas::ScrollGroup::ScrollSensitivity (ArdourCanvas::ScrollGroup::ScrollsVertically|
|
||||
ArdourCanvas::ScrollGroup::ScrollsHorizontally));
|
||||
ArdourCanvas::ScrollGroup* hsg;
|
||||
|
||||
hv_scroll_group = hsg = new ArdourCanvas::ScrollGroup (_track_canvas->root(),
|
||||
ArdourCanvas::ScrollGroup::ScrollSensitivity (ArdourCanvas::ScrollGroup::ScrollsVertically|
|
||||
ArdourCanvas::ScrollGroup::ScrollsHorizontally));
|
||||
CANVAS_DEBUG_NAME (hv_scroll_group, "canvas hv scroll");
|
||||
_track_canvas->add_scroller (*hsg);
|
||||
|
||||
_verbose_cursor = new VerboseCursor (this);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue