I would like to disable zooming by mouse dragging(which paints that rectangle), but not disable zooming by MouseWheel. I found in another topic how to disable zoom reset while dragging mouse to left (restoreAutoBounds) and I’m interested in how to solve this problem. Is there a little shortcut to do that?
I would like to disable zooming by mouse dragging(which paints that rectangle), but not
Share
Ok, I’ve done it, by overriding MouseWheelListener. After chartPannel.setMouseZoomable(false).:
zoom(In/Out)Domain, because I wanted to rescale only domain axis.