4

I am implementing a project in Phonegap-android.i would like to add a SWIPE VIEW for the length of the data available in the database.

Please guide how to implement the swipe view using java script similar to the one in android.

I have tried out with many but was not successful.. i have tried it with hammer.js,iscroll.js,Swipeview.js,idangerous Swiper.js.

For, the last two i.e Swipeview.js,idangerous Swiper.js,i had an android bug

Miss a drag as we are waiting for WebCore's response for touch down.

I tried fixing it with the code

document.addEventListener( 'touchstart', function(e){ onStart(e); }, false );
function onStart ( touchEvent ) {
  if( navigator.userAgent.match(/Android/i) ) {
    touchEvent.preventDefault();
  }
}

inspite of this code i faced the same WARNING. Whereas with hammer.js,iscroll.js it did not execute properply.

4

1 回答 1

1

检查以下链接,这些链接将指导您进行滑动视图:

  1. iscroll-4
  2. 扫一扫
  3. http://cubiq.org/swipeview
于 2013-05-10T12:07:48.333 回答