Trying to create a slider with custom mouseevent handling (drag only works while over the slider, initial mouseDown doesn’t need to happen inside the slider) My custom slider class inherits from slider, and I have tried two approaches:
1, overriding mouseMove & checking isMouseDown(), but isMouseDown() never returns true if the initial mouseDown doesn’t happen inside this component (per the docs)
2. overriding mouseDrag & checking isMouseOver(), but isMouseOver() never returns true for me if the initial mouseDown happens outside this component (also, per the docs)
Is there a better pattern to use here? Is it even advisable to inherit from slider directly?
IsMouseButtonDownAnywhere() also doesn’t seem to work for this purpose, unsure why