Windows 7.5 전화에서 작동하는 끌어서 놓기 기능을 얻으려고합니다. 처음에는 Windows 7.5를 제외한 모든 브라우저에서 작동하는 jquery ui draggable을 사용해 보았습니다. 나중에 더 자세히 살펴보면 Windows에서 터치 시작, touchend 및 touchmove 이벤트가 없음을 알았습니다. 그래서 놀랍게도 발사 한 mousedown, mousemove 이벤트를 사용하여 작동 시키려고했습니다. 그러나 그들은 적절한 순서로 발사하지 않습니다. (mousemove 전에 mousemove 화재). dragstart 및 dragend 이벤트가 작동하지도 않았습니다. 이 작업을 수행해야합니다. 의견 있으십니까 ?Javascript Windows phone 7.5에서 드래그 앤 드롭
/*Eg1:does not work*/
$("#draggable").draggable();
/*Eg2:This event does not fire*/
$("#draggable").bind("touchstart touchmove touchend", function(){
alert("touch events supported");})
/*Eg3: In this case, mousemove fires before mousedown.*/
$("#draggable").bind("mousedown", function(){
alert("mousedown");});
$("#draggable").bind("mousemove", function(){
alert("mousemove");});
텍스트 설명뿐만 아니라 수행중인 작업에 대한 코드 샘플을 제공해야합니다. 코드 샘플을 제공하면 사람들이 당신을 도울 가능성이 높아지고 답변을 찾을 수 있습니다. – HpTerm