mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Fix pan value update so that modifier-click on the panner correctly returns to centre.
git-svn-id: svn://localhost/ardour2/branches/3.0@6643 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
797cd64d12
commit
a0598953d9
1 changed files with 2 additions and 3 deletions
|
|
@ -626,9 +626,8 @@ PannerUI::pan_adjustment_changed (uint32_t which)
|
||||||
{
|
{
|
||||||
if (!in_pan_update && which < _panner->npanners()) {
|
if (!in_pan_update && which < _panner->npanners()) {
|
||||||
|
|
||||||
float xpos;
|
|
||||||
float val = pan_adjustments[which]->get_value ();
|
float val = pan_adjustments[which]->get_value ();
|
||||||
xpos = _panner->pan_control( which )->get_value();
|
float const xpos = _panner->pan_control(which)->get_value();
|
||||||
|
|
||||||
/* add a kinda-sorta detent for the middle */
|
/* add a kinda-sorta detent for the middle */
|
||||||
|
|
||||||
|
|
@ -645,7 +644,7 @@ PannerUI::pan_adjustment_changed (uint32_t which)
|
||||||
|
|
||||||
if (!Panner::equivalent (val, xpos)) {
|
if (!Panner::equivalent (val, xpos)) {
|
||||||
|
|
||||||
_panner->streampanner(which).set_position (val);
|
_panner->pan_control(which)->set_value (val);
|
||||||
/* XXX
|
/* XXX
|
||||||
the panner objects have no access to the session,
|
the panner objects have no access to the session,
|
||||||
so do this here. ick.
|
so do this here. ick.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue