2013-11-09 2 views
4

jQuery + jQuery 모바일에서 스 와이프 및 스 와이프하는 방법을 알려주실 수 있습니까? How to swipe top down JQuery mobilejQuery에서 위로 스 와이프하고 스 와이프하는 방법은 무엇입니까?

단점 :

는 이미이 플러그인을 사용하여 내가 위로와 기능 아래로 스 와이프 호출 내용을 스크롤합니다. jQuery 또는 jQuery 모바일을 사용하여 콘텐츠를 스크롤하고 위아래로 스 와이프 할 수 있도록 최선의 해결책을 제공 할 수 있습니까?

+0

및 안드로이드 TouchSwipe >> http://labs.rampinteractive.co 시도 .uk/touchSwipe/demos/Handlers_and_events.html – Ved

답변

9

다운로드

https://github.com/mattbryson/TouchSwipe-Jquery-Plugin에서 HTML 페이지

<script src="js/jquery.touchSwipe.min.js"></script> 

$("#id").swipe({ 
    swipeUp:function(event, direction, distance, duration) { 
    //console.log("You swiped " + direction) 
    }, 
    swipeDown:function(event, direction, distance, duration) { 
    //console.log("You swiped " + direction) 
    }, 
    click:function(event, target) { 
    }, 
    threshold:100, 
    allowPageScroll:"vertical" 
}); 

에 추가 또는이 하나 https://github.com/watusi/jquery-mobile-iscrollview

내가 IOS에서 사용하고
관련 문제