zcorsair / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

in zoomListener isZoomIn only works with zoom buttons and not with pinch zoom #470

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. isZoomIn returns true too during zooming out
2. But only when pinch zoom 

What is the expected output? What do you see instead?
isZoomin returns false during pinch zoom

Please provide a source code snippet that we can use to replicate the
issue.

mChartView.addZoomListener(new ZoomListener() {
   public void zoomApplied(ZoomEvent e) {
      String type = "out";
      if (e.isZoomIn()) {
        type = "in";
      }
      Log.i("Zoom", "Zoom " + type + " rate " + e.getZoomRate());
   }

   public void zoomReset() {
      Log.i("Zoom", "Reset");
   }
}, true, true);

What version of the product binary library are you using?
1.2.0

Please provide any additional information below.

Original issue reported on code.google.com by takacs.b...@gmail.com on 20 Jan 2015 at 11:03