I have a simple plot on which I want to control the Y range (I want to limit it between 0 and max, but still enable dragging such that range can be reduced between 0 and <max).

The axis dragging works beyond the plot window, and when this happens, the range reported by the rangeChanged signal is completely wrong, even reporting negative values although I limit the range between 0 and a positive max value.

This completely breaks my plot, which when dragging the axis this way beyond the plot window boundaries, quickly toggles between some small and the large Y range.

How can I disable dragging beyond the plot window???