Hi I'm using MPAndroidChart and my added OnClickListener is triggered right after i zoomed into or dragged a chart. How can i disable this behavior?
This are my chart properties:
chart.setTouchEnabled(true);
chart.setScaleEnabled(true);
chart.setDragEnabled(true);
chart.setPinchZoom(true);
chart.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//this only should run if i really click on the chart, not if i zoom or drag it.
...
});
Is there an easy way to do it? This ClickListener, ScaleListener and ScaleGestureDetector gang bang ist kinda complicated :/
thanks in advance