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 to make highlight scrolling on chart not trigger parent scrollView? [help] #3153

Closed
shakked opened this issue Jan 4, 2018 · 5 comments
Closed

Comments

@shakked
Copy link

shakked commented Jan 4, 2018

So I’m having this issue where in a scrollView, I have a bar chart. In the charts, you can slide left to right to highlight different values in the bar chart. What happens though is by sliding left to right, if you go up or down, the scroll view will scroll as well. How can I make it so that when I’m sliding on the chart left to right, the scroll view won’t scroll vertically?

Demo

@shakked shakked changed the title How to make highlight scrolling on chart not trigger parent scrollView? How to make highlight scrolling on chart not trigger parent scrollView? [help] Jan 4, 2018
@s1m-0n
Copy link

s1m-0n commented Jan 8, 2018

Having the same problem - keen to get to know the answer :)

@jjatie
Copy link
Collaborator

jjatie commented Jan 8, 2018

You need to make the scrollview's gesture recognizer require the chart's gesture recognizer to fail. For more information

@jjatie jjatie closed this as completed Jan 8, 2018
@raisezhang
Copy link

raisezhang commented Jun 8, 2018

@shakked I have the same problem, Do you have some code snippet on it? Thanks~

@shakked
Copy link
Author

shakked commented Jun 9, 2018

Nope, never figured it out @raisezhang

@Args
Copy link

Args commented Nov 5, 2018

save problem + 1

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

5 participants