mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
more cleanups of PannerUI, add start/end gesture support to mono panner
git-svn-id: svn://localhost/ardour2/branches/3.0@8478 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
adf9ac516d
commit
cb8f069e77
3 changed files with 17 additions and 28 deletions
|
|
@ -301,9 +301,10 @@ MonoPanner::on_button_press_event (GdkEventButton* ev)
|
|||
if (Keyboard::modifier_state_contains (ev->state, Keyboard::TertiaryModifier)) {
|
||||
/* handled by button release */
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
dragging = true;
|
||||
StartGesture ();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
@ -319,7 +320,7 @@ MonoPanner::on_button_release_event (GdkEventButton* ev)
|
|||
dragging = false;
|
||||
accumulated_delta = 0;
|
||||
detented = false;
|
||||
|
||||
|
||||
if (drag_data_window) {
|
||||
drag_data_window->hide ();
|
||||
}
|
||||
|
|
@ -327,6 +328,8 @@ MonoPanner::on_button_release_event (GdkEventButton* ev)
|
|||
if (Keyboard::modifier_state_contains (ev->state, Keyboard::TertiaryModifier)) {
|
||||
/* reset to default */
|
||||
position_control->set_value (0.5);
|
||||
} else {
|
||||
StopGesture ();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue