Hi, I need the kind of ComponentDragger that restricts the component's position to only one of the directions. I think this is common enough a feature so it should be done easilly. But I don't see any way how to achieve this using ComponentBoundsConstrainer. If I understand it well, You can only restrict the component's size, and the amount of pixels it can go offscreen.
I achieved the desired effect by inheriting ComponentDragger and basically overriding it's methods and altering the mouseEvent so that it has the same y-coordinate as the event that initiated the mouseDrag. But this solution seems kinda hackish and I don't like it. Is there a nicer solution in JUCE for this? I think that it is that common a feature that ComponentDragger could just have a property (that you could specify in the constructor or whatever) saying that it would drag in just one of the directions.