Open GoogleCodeExporter opened 9 years ago
I believe this may have something to do with the fact that the entire thing is
in a scrollview and that might mess things up.
Original comment by androidc...@gmail.com
on 5 Jul 2011 at 11:58
It also appears that only the first click after automatically scrolling to
bring the element into view is stale. The next clicks work properly.
Original comment by androidc...@gmail.com
on 6 Jul 2011 at 5:11
Found the problem.
What happens is when calling view.requestRectangleOnScreen, while that is
executed with the sync runner, it is animating so then the click goes to an old
position.
This fixes it in ViewElement.java:
return view.requestRectangleOnScreen(rect, true);
The true parameter will disable animation when scrolling so the coordinates of
the view are updated immediately and clicks work as expected.
Original comment by androidc...@gmail.com
on 6 Jul 2011 at 5:43
To @androidcave: Yes, you are right. Thanks for the investigation and solution.
Original comment by d...@google.com
on 19 Jul 2011 at 12:47
I actually found that disabling all animations in the emulator makes things a
lot smoother, maybe put that as a recommendation in your getting started page.
Original comment by androidc...@gmail.com
on 20 Jul 2011 at 2:57
Original issue reported on code.google.com by
androidc...@gmail.com
on 5 Jul 2011 at 10:15