How to change ranges of axes in F-Curve plot

When I spin the middle mouse button, ranges/zoom level for both axes change (i.e. frame and property value ranges). How can I change only one of them? Thanks in advance for your help.

Hold down Ctrl key and middle mouse button and drag up/down or left/right to scale just one axis

Thank you!