mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +01:00
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:
parent
c736a8bd02
commit
7de36bc5ab
1 changed files with 3 additions and 3 deletions
|
|
@ -347,9 +347,9 @@ StereoPanner::on_motion_notify_event (GdkEventMotion* ev)
|
||||||
double pv = position_control->get_value(); // 0..1.0 ; 0 = left
|
double pv = position_control->get_value(); // 0..1.0 ; 0 = left
|
||||||
|
|
||||||
if (ev->x > last_drag_x) { // increasing
|
if (ev->x > last_drag_x) { // increasing
|
||||||
pv = pv * (1.0 + delta);
|
pv = pv + delta;
|
||||||
} else {
|
} else {
|
||||||
pv = pv * (1.0 - delta);
|
pv = pv - delta;
|
||||||
}
|
}
|
||||||
|
|
||||||
position_control->set_value (pv);
|
position_control->set_value (pv);
|
||||||
|
|
@ -400,7 +400,7 @@ StereoPanner::on_key_press_event (GdkEventKey* ev)
|
||||||
bool
|
bool
|
||||||
StereoPanner::on_key_release_event (GdkEventKey* ev)
|
StereoPanner::on_key_release_event (GdkEventKey* ev)
|
||||||
{
|
{
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue