클릭으로도 동작해서 테스트시에도 용이함
$(function() { //Enable swiping... $("#test").swipe( { //Generic swipe handler for all directions swipe:function(event, direction, distance, duration, fingerCount, fingerData) { $(this).text("You swiped " + direction ); }, //Default is 75px, set to 0 for demo so any distance triggers swipe threshold:0 }); });http://labs.rampinteractive.co.uk/touchSwipe/demos/
http://hangaebal.blogspot.kr/2014/07/jquery-plugin-touchswipe.html
'Blogger 이사' 카테고리의 다른 글
[JavaScript] Detect Mobile Browsers (0) | 2016.04.04 |
---|---|
[JavaScript] in_array vs. $.inArray vs. indexOf() (0) | 2016.04.04 |
[jQuery] .find() vs .children() (0) | 2016.04.04 |
[jQuery] jQuery mobile - swipe event (0) | 2016.04.04 |
[CSS] 터치로 hover css 적용 (0) | 2016.04.04 |