Cordova Fix Android < 2.3 overflow scrolling issue

If using PhoneGap, you'll find that overflow scrolling doesn't work properly on Android devices older than 2.3.
<!-- HTML -->
<div class="overthrow">My scrollable content</div>
<script type="text/javascript" src="overthrow.js"></script>
<!-- get script from https://github.com/filamentgroup/Overthrow/ -->
.overthrow-enabled .overthrow {
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch;
}
Posted by
Snippet Viewed 6470 times.

Share your Cordova code snippets:

  • Get some recognition & a link back to your site.
  • Create your own code library.
  • Help your fellow developers, as they have helped you.

 

Submit | Browse

Most Recent cordova snippets

Most Viewed