In Ableton Live, one of the common slider styles looks like this:
Clicking in the box and dragging vertically sets new values while the blue fill color fills left to right. Double-clicking lets you type in a value. I’m trying to make a slider like this in JUCE.
There’s already a
Slider::LinearBar which is, visually, exactly the same thing, but it has a horizontal drag behavior. Similarly,
Slider::LinearBarVertical is almost the same thing visually, but the fill color fills bottom to top instead of left to right and the drag direction is vertical.
I can get very close to a Live-style slider using
Slider::LinearBarVertical and a custom LookAndFeel, but the drag behavior is confined to the height of the slider, which in this case is very small and makes for dialing in a value a terrible experience. It seems as well that
setMouseDragSensitivity has no effect on this slider behavior. Am I missing something? Is there an easy way to increase the drag region for a slider like this?