javascript - Jquery sortable is not working with touch -
i have created simple jquery application, supports sortable
interaction. application not work on mobile device touch screen. see demo here
var divl; var word = "lorem ipsum"; $(function(){ var parsed = word.split("");; var x = $("#sortable"); for(var = 0; < word.length; i++){ $('<li></li>').attr('class','item').attr('id',i).html(parsed[i]).appendto(x); } }); $(function() { x = $( '#sortable' ) x.sortable({ placeholder:"itemplaceholder", cursor:"move", }); x.disableselection(); });
how can fix issue ?
you need touch support (jquery ui not have it). check out jquery ui touch punch @ http://touchpunch.furf.com/
Comments
Post a Comment