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

Question: Gesture Detection #578

Closed
nickfedoroff opened this issue Nov 27, 2015 · 1 comment
Closed

Question: Gesture Detection #578

nickfedoroff opened this issue Nov 27, 2015 · 1 comment

Comments

@nickfedoroff
Copy link

How are touch events handled? The Android version has a OnChartGestureListener, but I don't see an equivalent for the Swift framework.

I want to un-highlight a line chart when dragging has stopped, among other things. Am I missing it?

Thanks

@liuxuan30
Copy link
Member

iOS has gestures and their handlers.
check out

    internal var _tapGestureRecognizer: UITapGestureRecognizer!
    internal var _doubleTapGestureRecognizer: UITapGestureRecognizer!
    #if !os(tvOS)
    internal var _pinchGestureRecognizer: UIPinchGestureRecognizer!
    #endif
    internal var _panGestureRecognizer: UIPanGestureRecognizer!

and their handlers, such as:

@objc private func panGestureRecognized(recognizer: UIPanGestureRecognizer)

(search other handlers)

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