cleanness / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

[Patch] Improved touch behaviour #432

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
- 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 commented 9 years ago
Forgot to attatch the patch

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

Attachments:

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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