Ammar Yasir a écrit :
> Ammar, > > I tried commit ed98d7ead90a73e64602ee20621d54f0b33f39dc: I zoomed in > with the mouse and when I try panning, sometimes it zooms at the > same time. > > This is unfortunate because after zooming, we really need to be able > to pan. > > > Yes It is unfortunate because the logic is right in the code. I tried to > look it up and its probably due to the way setExtremes() function works. > Will look into it more. How about the mousewheel zoom? Is its > functioning satisfactory? Yes.
Hi,
I improved on the panning feature. It no longer has a 'zoom' side-effect associated with it. The endonTick and startonTick options were causing problems and rounding the axis min/max to nearest tick I suppose. I also added a custom reset zoom functionality, it is very similar to the inbuilt 'Reset Zoom'. Whenever we call the setExtremes() method the link is displayed and is kept hidden in the original display settings(zoomRatio = 1, no Pan).
About panning: indeed it seems to work well.
About zooming: please confirm that now, zooming can be done only via mousewheel. If so: - you should update "How to use" - how do I proceed to zoom a particular area? selecting the area gave me a better control over which area I want to zoom