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

Pull to refresh #112

Closed
a5544321 opened this issue May 28, 2015 · 6 comments
Closed

Pull to refresh #112

a5544321 opened this issue May 28, 2015 · 6 comments

Comments

@a5544321
Copy link

Hello,is there any property or protocol to tell if I drag the chartView to the end of left or right?
I want to do something like "pull to refresh"
I found there is a OnFling listener in Android version document,but I can't find in ios charts
Can anyone help? Thanks

@danielgindi
Copy link
Collaborator

The onFling is something that comes by default when you implement the basic Gesture recognizer on Android.
On iOS we do not have to have that overhead by default - and if you want to have a swipe gesture recognized, just add a recognizer. You do not have to modify any of the Charts code - just add a recognizer to its gestureRecognizers array.

@a5544321
Copy link
Author

Thank you for your answer.But my problem is sometimes I will zoomIn the chart and swipe it left and right
but I only want to do something only when I scroll to the end . Is that doable?
And after I try to add a swipeRecognizer on chartView .It didn't work only if I swipe very very very fast.
Thank you.

@danielgindi
Copy link
Collaborator

Swipe gesture is a fast gesture, but you probably can change its
configuration.
If you received the delegate's messages you can know whenever the position
has changed, and compare it with the viewport.

On Thu, May 28, 2015 at 12:21 PM, a5544321 notifications@github.com wrote:

Thank you for your answer.But my problem is sometimes I will zoomIn the
chart and swipe it left and right
but I only want to do something only when I scroll to the end . Is that
doable?
And after I try to add a swipeRecognizer on chartView .It didn't work only
if I swipe very very very fast.
Thank you.


Reply to this email directly or view it on GitHub
#112 (comment)
.

@a5544321
Copy link
Author

Sorry , is your delegate means chartView delegate? I only can find chartvalue select and unselect in it. And I don't know what your position mean. Is viewport means viewportHandler? What property in it I should compare with position? Thanks..

@danielgindi
Copy link
Collaborator

You need to pull the latest version.

On Thu, May 28, 2015 at 12:59 PM, a5544321 notifications@github.com wrote:

Sorry , is your delegate means chartView delegate? I only can find
chartvalue select and unselect in it. And I don't know what your position
mean. Is viewport means viewportHandler? What property in it I should
compare with position? Thanks..


Reply to this email directly or view it on GitHub
#112 (comment)
.

@a5544321
Copy link
Author

OK
Thanks a lot!

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