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
@ -626,9 +626,8 @@ PannerUI::pan_adjustment_changed (uint32_t which)
|
||||
{
|
||||
if (!in_pan_update && which < _panner->npanners()) {
|
||||
|
||||
float xpos;
|
||||
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 */
|
||||
|
||||
@ -645,7 +644,7 @@ PannerUI::pan_adjustment_changed (uint32_t which)
|
||||
|
||||
if (!Panner::equivalent (val, xpos)) {
|
||||
|
||||
_panner->streampanner(which).set_position (val);
|
||||
_panner->pan_control(which)->set_value (val);
|
||||
/* XXX
|
||||
the panner objects have no access to the session,
|
||||
so do this here. ick.
|
||||
|
Loading…
Reference in New Issue
Block a user