summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_canvas_events.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-01-25 17:26:11 +1000
committerTim Mayberry <mojofunk@gmail.com>2016-01-25 17:44:22 +1000
commit452e39f8a30a2cd435049922a13150b55f51ac0d (patch)
tree9def7da4cf2ed1c013656ea791bdcf9ea04890d5 /gtk2_ardour/editor_canvas_events.cc
parentb6eab5ede5402cfc44cf253a63cb3dbb792a0ec5 (diff)
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.
Diffstat (limited to 'gtk2_ardour/editor_canvas_events.cc')
-rw-r--r--gtk2_ardour/editor_canvas_events.cc4
1 files 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 {