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

[Patch] Improved touch behaviour #432

Open
GoogleCodeExporter opened this issue Jul 4, 2015 · 3 comments
Open

[Patch] Improved touch behaviour #432

GoogleCodeExporter opened this issue Jul 4, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

- Touch events are handled by a GestureDetector before being send to the 
TouchHandler. 
- Added a handleFling method to the TouchHandler which animates a fling of a 
chart. 
- Added nineoldandroids dependency to the pom to be able to use the 
ValueAnimator. 

Since the GestureDetector is now consuming scroll and fling events, there will 
be less accidental onClick events fired when setting a onClickListener on one 
of your graphs.

Original issue reported on code.google.com by jo...@afrogleap.com on 5 Sep 2014 at 8:20

@GoogleCodeExporter
Copy link
Author

Forgot to attatch the patch

Original comment by jo...@afrogleap.com on 5 Sep 2014 at 8:21

Attachments:

@GoogleCodeExporter
Copy link
Author

Interesting, but I really want to stay away from adding a dependency for ACE.

Original comment by dandrome...@gmail.com on 16 Sep 2014 at 7:40

@GoogleCodeExporter
Copy link
Author

OK, I could make another patch that just introduces the GestureDetector which 
consumes the fling and scroll gesture. I found that this greatly reduces the 
incidental click events while scrolling when having a listener on your graph.

Original comment by jo...@afrogleap.com on 16 Sep 2014 at 9:22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant