Preventing overshoot and over-zoom on Android


#1

I’m trying to prevent overshooting on android when panning a chart vertically. I have these but they don’t seem to be making any difference:

       yAxis.enableBouncingAtLimits(false);

        yAxis.enableGesturePanning(true);

        yAxis.enableGestureZooming(true);

        yAxis.enableMomentumPanning(true);

        yAxis.enableMomentumZooming(false);

        yAxis.allowPanningOutOfMaxRange(false);

Also, is there a way to prevent over-zooming (zooming out more than “fit-page-height”, sorry can’t find a better word for it)?


#2

Hello Radu,

The enableBouncingAtLimits is the correct method to call to prevent both overshoot and also overzoom. It would appear that this is currently not functioning correctly, and it does seem that this is a bug. We will let you know when a fix becomes available, unfortunately I am not able to suggest any workaround at this point.

We apologise for any invconvenience that this may have caused you.

Thanks,

Kai.


#3

Hello Radu.

I am pleased to report that a bug fix for this issue is included in the latest release of ShinobiCharts for Android. 

Thanks,

Kai.