테스트 사이트 - 개발 중인 베타 버전입니다

vmousecancel event

· 8년 전 · 1618
vmousecancel event

version added: 1.0


설명 : 가상화 된 mousecancel 이벤트 처리기입니다.

jQuery( ".selector" ).on( "vmousecancel", function( event ) { ... } )


우리는 마우스 및 터치 이벤트를 추상화하려는 "가상"마우스 이벤트 세트를 제공합니다.

이를 통해 개발자는 mousedown, mousemove, mouseup 및 click과 같은 기본 마우스 이벤트에 대한 리스너를 등록 할 수 있으며

플러그 인은 올바른 수신기를 등록하여 해당 장치에 대한 가능한 가장 빠른 시간에 리스너를 호출합니다 .

터치 환경에서 플러그인은 전통적인 마우스 환경에서 볼 수있는 이벤트 실행 순서를 유지합니다. 예를 들어 vmouseup은 항상 vmousedown 전에

전달되고 vmousedown은 vclick 전에 전달됩니다. 가상 마우스 이벤트는 좌표 정보가 추출되는 방식을 정규화합니다

이 이벤트는 터치 기반 환경에서 pageX, pageY, screenX, screenY, clientX 및 clientY 속성에서 이벤트 객체에 직접 사용할 수 있습니다.

jQuery Mobile vmousecancel 이벤트 핸들러는 시스템이 가상화 된 마우스 이벤트를 취소 할 때마다 호출됩니다.

이 이벤트는 스크롤이 트리거 될 때 발생합니다. jQuery Mobile은이 인스턴스에서 "vmousecancel"이벤트를 시작합니다.

이 플러그인은 jQuery의 내장 메소드를 확장합니다.

jQuery Mobile이로드되지 않으면 메서드가 여전히 존재하므로 .vmousecancel () 메서드를 호출하는 것이 직접 실패하지 않을 수 있습니다.

그러나 예상 된 동작이 발생하지 않습니다.

가상 마우스 이벤트도 구성 할 수 있습니다.

$.vmouse.moveDistanceThreshold (default: 10px) – 이보다 더 많은 것은 스크롤 이벤트입니다. vmousecancel 이벤트가 호출되고 TouchMove 이벤트가 취소됩니다
.
$.vmouse.clickDistanceThreshold (default: 10px) – vclick 이벤트가 이미 캡처되어 차단 목록에 있으면이 거리보다 작은 vclick이 무시됩니다.

$.vmouse.resetTimerDuration (default: 1500ms) – 이보다 더 많은 시간은 터치 이벤트가 아닙니다. Scroll, TouchMove 및 TouchEnd 이벤트는이 기능을 사용합니다. 차단 목록이 지워집니다.

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
1266
1265
1264
1263
1262
1261
1260
1259
1258
1257
1256
jQuery Mobile Button Refresh()
1255
1254
1253
1252
1251
1250
1249
1248
jQuery Mobile Button Widget 1
1247
jQuery Mobile Checkbox 속성
1246
jQuery Mobile Button 속성
1245
jQuery Mobile vmouseup event
1244
jQuery Mobile vmouseover event
1243
jQuery Mobile vmouseout event
1242
jQuery Mobile vmousemove event
1241
jQuery Mobile vmousedown event
1240
1239
jQuery Mobile vclick event
1238
jQuery Mobile updatelayout event
1237