isRightButtonDown in APValueTreeState


#1
void sliderValueChanged (Slider* s) override
{
    const ScopedLock selfCallbackLock (selfCallbackMutex);

    if ((! ignoreCallbacks) && (! ModifierKeys::getCurrentModifiers().isRightButtonDown()))
        setNewUnnormalisedValue ((float) s->getValue());
}

What’s the test for the right button about here?


#2

I guess to allow a context menu to be triggered without making the slider jump there…


#3

Well, that’d suggest the use of isPopupMenu() modifier, and this is after the slider value has been changed anyway… so I’m confused :slight_smile:


#4

Aye, seems to me it needs reviewing…