Confermato che il jquery-ui-touch-punch di furf funziona sull'iPad.
Il suo funzionamento è facile come includere "jquery.ui.touch-punch.js" dopo aver incluso jquery-ui e jquery. Per esempio:
HTML:
<head>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></script>
<!-- touch capability for tablets/phones -->
<script type="text/javascript" src="js/jquery.ui.touch-punch.js"></script>
</head>
Javascript:
//
// assume that html_string is a valid string
// containing some element you want to be draggable
// which needs to be added to the DOM
//
function addItemToUIList (list, html_string) {
var item = $(list).append (html_string);
// now, using jqui and touch-punch, we can make it draggable
item.draggable();
}
Ora "voce" possono essere trascinati in giro sullo schermo su iPad così come in Chrome sul desktop.
grazie, esattamente quello che mi serviva. – cgTag
sfortunatamente questo disabilita la funzionalità di scroll se hai molti elementi trascinabili ... – tmaximini