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

How can I not be highlighted when I touch ended ? #1216

Closed
monkeyRing opened this issue Jul 4, 2016 · 3 comments
Closed

How can I not be highlighted when I touch ended ? #1216

monkeyRing opened this issue Jul 4, 2016 · 3 comments

Comments

@monkeyRing
Copy link

in other words,How do I listen for my fingers in the process of moving the highlight loosened
You can monitor the status of the gesture ?

@liuxuan30
Copy link
Member

 /// Called when a value has been selected inside the chart.
    /// - parameter entry: The selected Entry.
    /// - parameter dataSetIndex: The index in the datasets array of the data object the Entrys DataSet is in.
    optional func chartValueSelected(chartView: ChartViewBase, entry: ChartDataEntry, dataSetIndex: Int, highlight: ChartHighlight)

    // Called when nothing has been selected or an "un-select" has been made.
    optional func chartValueNothingSelected(chartView: ChartViewBase)

take a closer look at how the delegate methods are implemented

@monkeyRing
Copy link
Author

Thank you for your answer.

I know these two delegate methods , but these two methods and can not play real-time monitoring whether the finger left the screen . I need to know panGes.state == Began || panGes.state == Endedsuch sensing mechanism

@liuxuan30
Copy link
Member

then you probably could provide your own gesture handler for fine-grained control? The handlers are private, so you can provide you own

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