-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Is it possible to extend the gesture handler? #2419
Comments
You can add a view above the chart, do whatever you want
Since the gesture behaviors in chart is not meet my requirements, I did so
… 在 2017年5月8日,下午10:00,Arda Keskiner ***@***.***> 写道:
Hi,
I want to add additional behaviour to built in gesture handlers. Is that possible? For example when there is a UIPanGesture, I want to zoom out while I'm scrolling through the chart.
lineChartView.addGestureRecognizer(UIPanGestureRecognizer(target: self, action: #selector(handleGesture)))
If I add a gesture recognizer like this, it conflicts with scrolling behaviour.
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I see, but I still have the problem of not having both recognizers (chart's recognizer and mine). The code I have is: let additionalView = UIView(frame: self.lineChartView.frame)
additionalView.addGestureRecognizer(UIPanGestureRecognizer(target: self, action: #selector(handleGesture)))
self.view.addSubview(additionalView) |
The gesture handler is |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I want to add additional behaviour to built in gesture handlers. Is that possible? For example when there is a UIPanGesture, I want to zoom out while I'm scrolling through the chart.
If I add a gesture recognizer like this, it conflicts with scrolling behaviour.
Thanks.
The text was updated successfully, but these errors were encountered: