What I want is to only move the slider knob when the slider knob was clicked on the first place and ignore any clicks on the rail (like many plugins behave). Is there an easy way to do this?
setSliderSnapsToMousePosition is almost what I want, but whenever I click outside the knob and inside the slider rail, and then drag, the slider moves.
If I have to create a custom slider class, what’s the best way to go?
I would like to do a similar task, but I only want to disable snapsToMouse when clicking on the knob, while still allowing it in the rail. I tried calling setSliderSnapsToMousePosition() in hitTest, depending on where the click is, but this (as one might expect) causes really strange behaviour. lol… Any ideas?
Got it working… One only wants to change the snapsToMouse setting on the first time thru hitTest. I track ‘first time’ by tracking mouseDown, ie. if coming thru hitTest, and mouse is not down, then change the setting, once the mouse is down, don’t change it.