in mixbus, treat the canvas rulers just like the canvas wrt mouse-wheel-zoom

This commit is contained in:
Ben Loftis 2015-01-29 11:23:49 -06:00
parent 59bbb8500b
commit f603ca174e
1 changed files with 19 additions and 2 deletions

View File

@ -1035,12 +1035,29 @@ Editor::canvas_ruler_event (GdkEvent *event, ArdourCanvas::Item* item, ItemType
switch (event->scroll.direction) {
case GDK_SCROLL_UP:
temporal_zoom_step (false);
if (Profile->get_mixbus()) {
//for mouse-wheel zoom, force zoom-focus to mouse
Editing::ZoomFocus temp_focus = zoom_focus;
zoom_focus = Editing::ZoomFocusMouse;
temporal_zoom_step (false);
zoom_focus = temp_focus;
} else {
temporal_zoom_step (false);
}
handled = true;
break;
case GDK_SCROLL_DOWN:
temporal_zoom_step (true);
if (Profile->get_mixbus()) {
//for mouse-wheel zoom, force zoom-focus to mouse
Editing::ZoomFocus temp_focus = zoom_focus;
zoom_focus = Editing::ZoomFocusMouse;
temporal_zoom_step (true);
zoom_focus = temp_focus;
} else {
temporal_zoom_step (true);
}
handled = true;
break;