으로 수직 인 스 와이프에 대한 이벤트는 무엇인가?내가 jquerymobile 문서를 쳐다 보면서 보았다
4
A
답변
3
불행하게도 swipeup 및 swipedown jQuery를 모바일에 존재하지 않는 가상 마우스 오버를하는 vmouseover가, 그리고 그들이 버전 1.3에 대한 계획이었습니다되지 않습니다 생각합니다. 타사 플러그인이 여기에 있습니다 : http://developingwithstyle.blogspot.com/2010/11/jquery-mobile-swipe-up-down-left-right.html. 일반 이벤트처럼 사용하십시오 : swipeedown 및 swipeup.
이 구현이 필요한 경우이 플러그인을 사용할 수도 있습니다 : http://www.netcu.de/jquery-touchwipe-iphone-ipad-library. Android 기기에서도 작동합니다. 이것은 공식적인 이벤트와 달리 데스크톱 브라우저에서 작동하지 않기 때문에 최악의 시나리오 솔루션입니다. 여기
는 모바일 장치에서 테스트, 작업 예제하십시오 pageshow 처리기에 다음 코드를 추가하여 http://jsfiddle.net/Gajotres/WYnnk/
$("#wrapper").touchwipe({
wipeLeft: function() {
$("#carousel").trigger("next", 1);
},
wipeRight: function() {
$("#carousel").trigger("next", 1);
},
min_move_x: 20,
min_move_y: 20,
preventDefaultEvents: true
});
0
1
, 나는의 헤더에 기능을 갱신하기 위해 풀을 시뮬레이션 할 수 있었다 내 페이지 ...
// Set aside the thresholds so they can be reset later.
var _scrollSupressionThreshold = $.event.special.swipe.scrollSupressionThreshold;
var _horizontalDistanceThreshold = $.event.special.swipe.horizontalDistanceThreshold;
var _verticalDistanceThreshold = $.event.special.swipe.verticalDistanceThreshold;
// Adjust the thresholds for a vertical swipe.
$.event.special.swipe.scrollSupressionThreshold = 5;
$.event.special.swipe.horizontalDistanceThreshold = 1;
$.event.special.swipe.verticalDistanceThreshold = 128;
// Listen for the swipe event...
$('#my_jqm_page div[data-role="header"]').on("swipe", function() {
// Reset thresholds.
$.event.special.swipe.scrollSupressionThreshold = _scrollSupressionThreshold;
$.event.special.swipe.horizontalDistanceThreshold = _horizontalDistanceThreshold;
$.event.special.swipe.verticalDistanceThreshold = _verticalDistanceThreshold;
// Take action...
console.log('Vertical swipe!');
});
관련 문제
- 1. 내가 살펴 보았다
- 2. 나는이 문서를 통해 보았다 레디 스 루비
- 3. 내가 포럼에 비슷한 오류를 보았다
- 4. 내가 하루 종일 여기 보았다
- 5. 내가 여기에이 링크를 보았다 '공유'
- 6. jqueryMobile
- 7. 내가 한 번 이상 형태의 코드를 보았다
- 8. eBay 상점 디자인은 내가 이것에 대답을 보았다
- 9. MySQL은 내가 관련 질문을 많이 보았다
- 10. 은 내가 포인트 컷 패턴이 변화를 보았다
- 11. 내가 선언 자바 몇 가지 방법을 보았다
- 12. C#을 속성은 내가 다음 코드를 보았다
- 13. 내가 샘플 응용 프로그램에서이 코드 줄을 보았다
- 14. 젠토 내가 인터넷을 통해 모두를 보았다
- 15. VideoView를 지켜 보면서
- 16. VideoView를 지켜 보면서
- 17. JQuerymobile 아이콘의 위치가 잘못되었습니다.
- 18. 젠토 - 404 오류 모듈을 보면서
- 19. jquerymobile 썸네일
- 20. 내가 어떤 앵커 텍스트 또는 아무것도</p> <p>나는 소스를 쳐다 보면서 이것을보고가없는 버튼을 클릭하여 웹 브라우저 컨트롤을 사용하려고
- 21. Jquerymobile ListView
- 22. 깜박임 jQueryMobile
- 23. Google 문서 도구 (JqueryMobile 포함)
- 24. AngularJS로 여러 변수를 보면서 변수를 다시 계산
- 25. jquerymobile 페이지
- 26. Jquerymobile - $ .mobile.changepage
- 27. Jquerymobile mySQL
- 28. Jquerymobile Flexslider
- 29. 동영상을 보면서 수업에 수업 적용
- 30. 날짜 형식을 보면서 줄 바꿈
수직 및 가상을 혼동하지 않으시겠습니까? –
아니, 생각보다 가상 수직 마우스 야 - 둘 다! 그건 내 이해 –
좋은 질문입니다 ... –