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

touchesEnded can't be called in chart view? #3409

Closed
ijinliu opened this issue Apr 19, 2018 · 1 comment
Closed

touchesEnded can't be called in chart view? #3409

ijinliu opened this issue Apr 19, 2018 · 1 comment

Comments

@ijinliu
Copy link

ijinliu commented Apr 19, 2018

I build a Bar Chart View and the chartView is running as a horizontal scrollview.
And now I want to collect the touchesBegin location and also touchesEnded location, so that I could calculate the distance which the user swipe on the chartView.
I could call touchBegin directly when I touch the chartView, however, I found that I couldn't get touchesEnded called. It will become touchesCancelled when I release the touch.
But when I touch the view outside the chartView, it can be collected.
If there is any solution that I could collect the touchesEnded location when I swipe on the chartView?
Any help is appreciated!! Thanks you first anyway!!

@liuxuan30
Copy link
Member

ask on stack overflow. This is beyond chart scope.

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

2 participants