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

To judge whether the initial state #1178

Closed
Ella-Sun opened this issue Jun 27, 2016 · 3 comments
Closed

To judge whether the initial state #1178

Ella-Sun opened this issue Jun 27, 2016 · 3 comments

Comments

@Ella-Sun
Copy link

When scaling chart, how to judge whether it returns to the initial state?

@Ella-Sun
Copy link
Author

the parameters of it "- (void)chartScaled:(ChartViewBase *)chartView scaleX:(CGFloat)scaleX scaleY:(CGFloat)scaleY" doesn't work.

@DivineDominion
Copy link

What code do you have in chartScaled:scaleX:scaleY?

@liuxuan30
Copy link
Member

liuxuan30 commented Jun 30, 2016

you could try chartViewPortHandler.scaleX/scaleY
BTW, chartScaled should work. I checked the code. If you say it's not working, could you help try debug?
it's in @objc private func pinchGestureRecognized(recognizer: NSUIPinchGestureRecognizer)

If you are not triggering the zooming with gesture, it won't work.

if you are sure the gesture not triggering, feel free to reopen and post the trace

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

3 participants