mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
more profound changes to canvas scrolling, in particular find appropriate ScrollGroup for Canvas::{window,canvas}_to_{canvas,window}()
This commit is contained in:
parent
d4989ed9ce
commit
e0533e9dd7
14 changed files with 167 additions and 91 deletions
|
|
@ -140,12 +140,6 @@ Editor::window_event_sample (GdkEvent const * event, double* pcx, double* pcy) c
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* adjust for scrolling (the canvas used by Ardour has global scroll
|
||||
* disabled, so we have to do the adjustment explicitly).
|
||||
*/
|
||||
|
||||
d.translate (ArdourCanvas::Duple (horizontal_adjustment.get_value(), vertical_adjustment.get_value()));
|
||||
|
||||
/* event coordinates are in window units, so convert to canvas
|
||||
*/
|
||||
|
||||
|
|
@ -2710,8 +2704,6 @@ Editor::add_region_drag (ArdourCanvas::Item* item, GdkEvent*, RegionView* region
|
|||
return;
|
||||
}
|
||||
|
||||
_region_motion_group->raise_to_top ();
|
||||
|
||||
if (Config->get_edit_mode() == Splice) {
|
||||
_drags->add (new RegionSpliceDrag (this, item, region_view, selection->regions.by_layer()));
|
||||
} else {
|
||||
|
|
@ -2728,8 +2720,6 @@ Editor::add_region_copy_drag (ArdourCanvas::Item* item, GdkEvent*, RegionView* r
|
|||
return;
|
||||
}
|
||||
|
||||
_region_motion_group->raise_to_top ();
|
||||
|
||||
_drags->add (new RegionMoveDrag (this, item, region_view, selection->regions.by_layer(), false, true));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue