mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Editor Summary: fix yet another thinko in zoom direction.
This commit is contained in:
parent
29002b9ac9
commit
1decc225c9
1 changed files with 5 additions and 5 deletions
|
|
@ -570,7 +570,7 @@ EditorSummary::set_cursor (Position p)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
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;
|
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.second = xn.first + _editor->current_page_samples() * _x_scale;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
xn.first += steps;
|
xn.first -= steps;
|
||||||
xn.second -= steps;
|
xn.second += steps;
|
||||||
|
|
||||||
set_overlays_dirty ();
|
set_overlays_dirty ();
|
||||||
set_editor_x (xn);
|
set_editor_x (xn);
|
||||||
|
|
@ -713,14 +713,14 @@ EditorSummary::on_scroll_event (GdkEventScroll* ev)
|
||||||
switch (ev->direction) {
|
switch (ev->direction) {
|
||||||
case GDK_SCROLL_UP: {
|
case GDK_SCROLL_UP: {
|
||||||
|
|
||||||
summary_zoom_step( -2 );
|
summary_zoom_step( -4 );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case GDK_SCROLL_DOWN: {
|
case GDK_SCROLL_DOWN: {
|
||||||
|
|
||||||
summary_zoom_step( 2 );
|
summary_zoom_step( 4 );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} break;
|
} break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue