diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2017-07-19 14:13:18 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2017-07-19 14:13:18 -0500 |
commit | 1decc225c9bcc8dfd09fcff5df66a04b1606a1d1 (patch) | |
tree | 6508614f4e17c80bc448326d76bf97c709be8080 /gtk2_ardour/editor_summary.cc | |
parent | 29002b9ac900e1115ae51635eb2afad34cb53c40 (diff) |
Editor Summary: fix yet another thinko in zoom direction.
Diffstat (limited to 'gtk2_ardour/editor_summary.cc')
-rw-r--r-- | gtk2_ardour/editor_summary.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc index cabf0aadd6..47f856cbbd 100644 --- a/gtk2_ardour/editor_summary.cc +++ b/gtk2_ardour/editor_summary.cc @@ -570,7 +570,7 @@ EditorSummary::set_cursor (Position p) } void -EditorSummary::summary_zoom_step ( int steps /* negative steps to zoom "out" , positive steps to zoom "in" */ ) +EditorSummary::summary_zoom_step ( int steps /* positive steps to zoom "out" , negative steps to zoom "in" */ ) { pair<double, double> xn; @@ -580,8 +580,8 @@ EditorSummary::summary_zoom_step ( int steps /* negative steps to zoom "out" , p // xn.second = xn.first + _editor->current_page_samples() * _x_scale; // } - xn.first += steps; - xn.second -= steps; + xn.first -= steps; + xn.second += steps; set_overlays_dirty (); set_editor_x (xn); @@ -713,14 +713,14 @@ EditorSummary::on_scroll_event (GdkEventScroll* ev) switch (ev->direction) { case GDK_SCROLL_UP: { - summary_zoom_step( -2 ); + summary_zoom_step( -4 ); return true; } break; case GDK_SCROLL_DOWN: { - summary_zoom_step( 2 ); + summary_zoom_step( 4 ); return true; } break; |