From 452e39f8a30a2cd435049922a13150b55f51ac0d Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Mon, 25 Jan 2016 17:26:11 +1000 Subject: [PATCH] Make horizontal scroll increment consistent in ruler and track canvas areas In response to a comment in #6722, as there is little delineation between the ruler and track canvas areas it makes sense to keep the scrolling step the same to avoid unintended jumps in scrolling if mouse cursor moves between areas. --- gtk2_ardour/editor_canvas_events.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_canvas_events.cc b/gtk2_ardour/editor_canvas_events.cc index 58e3dda285..25907fe1d5 100644 --- a/gtk2_ardour/editor_canvas_events.cc +++ b/gtk2_ardour/editor_canvas_events.cc @@ -1030,7 +1030,7 @@ Editor::canvas_ruler_event (GdkEvent *event, ArdourCanvas::Item* item, ItemType case GDK_SCROLL_UP: if (Keyboard::modifier_state_equals(event->scroll.state, Keyboard::ScrollHorizontalModifier)) { - scroll_left_half_page (); + scroll_left_step (); } else if (UIConfiguration::instance().get_use_mouse_position_as_zoom_focus_on_scroll()) { temporal_zoom_step_mouse_focus (false); } else { @@ -1042,7 +1042,7 @@ Editor::canvas_ruler_event (GdkEvent *event, ArdourCanvas::Item* item, ItemType case GDK_SCROLL_DOWN: if (Keyboard::modifier_state_equals(event->scroll.state, Keyboard::ScrollHorizontalModifier)) { - scroll_right_half_page (); + scroll_right_step (); } else if (UIConfiguration::instance().get_use_mouse_position_as_zoom_focus_on_scroll()) { temporal_zoom_step_mouse_focus (true); } else {