Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pinch to Zoom is not being disabled properly. #470

Closed
BrandonShega opened this issue Oct 13, 2015 · 4 comments
Closed

Pinch to Zoom is not being disabled properly. #470

BrandonShega opened this issue Oct 13, 2015 · 4 comments

Comments

@BrandonShega
Copy link

We are turning off the pinch to zoom by the following code:

self.barChartView.pinchZoomEnabled = NO;

But we are still able to pinch zoom, this has only been happening recently after the latest update to charts, is there something else we need to do to disable it?

@danielgindi
Copy link
Collaborator

pinchZoomEnabled is only one way to zoom. There are also per axis zoom options which you need to turn off- and it has always been there...

@gabhisekdev
Copy link

 self.barChart?.doubleTapToZoomEnabled = false
 self.barChart?.pinchZoomEnabled = false
 barChart.dragEnabled = false

I have tried out the above things but still user is able to zoom the bar chart. Can you please suggest the code to disable X & Y scaling individually.

@zanesc
Copy link

zanesc commented Jul 18, 2017

@GABHISEKBUNTY after having the same issue i found the option to disable all zooming:

self.barChart?.setScaleEnabled(false)

@joaocamargo
Copy link

@zanesc You saved my day! Tks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants