My android webview app never had scrolling issues until the most recent version, Jelly Bean. Scrolling is no longer smooth enough and no acceleration either. Any ideas?
Asked
Active
Viewed 1,882 times
1
-
2Have you enabled hardware acceleration in your app? – Romain Guy Jul 20 '12 at 06:10
1 Answers
2
I tried using hardware acceleration but that didn't solve this issue. However, i figured the problem and came out with some other solution. The issue was(as far as I observed), I had a bind touchend (jquery) event on a page which had several clickable elements. Now, while scrolling, somehow the system was trying to work on the bind events on every div element, and hence was slowing down the scroll drastically. So i fixed it by unbinding these divs on scroll and rebinding on end of scroll. It worked!
P.S.: using hardware acceleration solved some other issue i was facing with ICS & Jelly Bean about which I have posted here (along with this solution) Android webview app on ICS getting pixelated

Community
- 1
- 1

Rahul Dole
- 2,723
- 2
- 24
- 30