Editor Summary: fix yet another thinko in zoom direction.
authorBen Loftis <ben@harrisonconsoles.com>
Wed, 19 Jul 2017 19:13:18 +0000 (14:13 -0500)
committerBen Loftis <ben@harrisonconsoles.com>
Wed, 19 Jul 2017 19:13:18 +0000 (14:13 -0500)
gtk2_ardour/editor_summary.cc

index cabf0aadd6e273cbabb2aa1880e14b2c62302f35..47f856cbbd0a0f07c65c5332f3a2cf7e2885cd74 100644 (file)
@@ -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;