13
0

fix asymmetric pan dragging, relay key release events to editor

git-svn-id: svn://localhost/ardour2/branches/3.0@8151 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-12-01 23:47:40 +00:00
parent c736a8bd02
commit 7de36bc5ab

View File

@ -347,9 +347,9 @@ StereoPanner::on_motion_notify_event (GdkEventMotion* ev)
double pv = position_control->get_value(); // 0..1.0 ; 0 = left
if (ev->x > last_drag_x) { // increasing
pv = pv * (1.0 + delta);
pv = pv + delta;
} else {
pv = pv * (1.0 - delta);
pv = pv - delta;
}
position_control->set_value (pv);
@ -400,7 +400,7 @@ StereoPanner::on_key_press_event (GdkEventKey* ev)
bool
StereoPanner::on_key_release_event (GdkEventKey* ev)
{
return true;
return false;
}
bool