yuxinburen / achartengine

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

panning not work when allowed only in one direction #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. enable panning by mRenderer.setPanEnabled(true, false); so only in one axis
2.
3.

What is the expected output? What do you see instead?
pan should work in one axis

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

What version of the product binary library are you using?
latest svn

Please provide any additional information below.
problem is simply in function

  public boolean isPanEnabled() {
    return isPanXEnabled() && isPanYEnabled();
  }

in XYMultipleSeriesRenderer on line 670, where both directions have to be 
enabled to allow panning. Solution is to set

  public boolean isPanEnabled() {
    return isPanXEnabled() || isPanYEnabled();
  }

Original issue reported on code.google.com by menion.asamm on 23 Jun 2011 at 9:16

GoogleCodeExporter commented 9 years ago
Fixed in SVN rev. r228.

Original comment by dandrome...@gmail.com on 30 Jun 2011 at 4:16