shift-click on shuttle controller in wheel mode resets it to 1.0 (100%) (#4994)
git-svn-id: svn://localhost/ardour2/branches/3.0@13000 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
deb202b1f7
commit
6b06923a5d
@ -241,10 +241,16 @@ ShuttleControl::on_button_press_event (GdkEventButton* ev)
|
||||
|
||||
switch (ev->button) {
|
||||
case 1:
|
||||
if (Keyboard::modifier_state_equals (ev->state, Keyboard::TertiaryModifier)) {
|
||||
if (_session->transport_rolling()) {
|
||||
_session->request_transport_speed (1.0);
|
||||
}
|
||||
} else {
|
||||
add_modal_grab ();
|
||||
shuttle_grabbed = true;
|
||||
shuttle_speed_on_grab = _session->transport_speed ();
|
||||
mouse_shuttle (ev->x, true);
|
||||
}
|
||||
break;
|
||||
|
||||
case 2:
|
||||
@ -265,6 +271,7 @@ ShuttleControl::on_button_release_event (GdkEventButton* ev)
|
||||
|
||||
switch (ev->button) {
|
||||
case 1:
|
||||
if (shuttle_grabbed) {
|
||||
shuttle_grabbed = false;
|
||||
remove_modal_grab ();
|
||||
|
||||
@ -273,7 +280,7 @@ ShuttleControl::on_button_release_event (GdkEventButton* ev)
|
||||
} else {
|
||||
mouse_shuttle (ev->x, true);
|
||||
}
|
||||
|
||||
}
|
||||
return true;
|
||||
|
||||
case 2:
|
||||
|
Loading…
Reference in New Issue
Block a user