Drag on x and y and zoom only on x

Hello, I would like to be able to zoom only on the x axis but when dragging it can be done on both x and y axes at the same time the problem is that when using the fixedrange the axis is anchored