2012-03-19 2 views
4

jQuery Mobile vmousemove 이벤트는 태블릿을 누르고 끌기가 완료되었을 때만 시작됩니다. 실제 이벤트는 발생하지 않습니다.jquery 모바일 vmousemove 원하는 때 부드럽게

내가 스 와이프를 시작하면, 모든 것이 정상적으로 작동합니다. 그러나 수직 드래그를 구현하고 있기 때문에 수직으로 이동하려면 가로 끌기를 시작해야합니다.

또한 스 와이프 이벤트를 제거하면 손가락을 움직이는 동안 드래그 이벤트가 시작되지 않습니다.

$('body').bind('swiperight',function(){ 
    previous(); 
}); 
$('body').bind('swipeleft',function(){ 
    next(); 
}); 

이 : $ .event.special.swipe :

function handleDrag(e) { 
    $('h1').html(e.pageY); 
} 
$('.image img').bind('vmousedown', function(e){ 
    $('body').bind('vmousemove', handleDrag); 
}); 
$('body').bind('vmnouseup', function(){ 
$('.image').unbind('vmousemove', handleDrag); 
}); 
+0

이 속임수를 썼는지해야

나는이 있습니다 .scrollSupressionThreshold = -1; – francescortiz

답변

1

'vmnouseup가'vmouseup '

관련 문제