Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery-ui sortable | How to get it work on iPad/touchdevices?

Found a solution (only tested with iPad until now!)!

https://github.com/furf/jquery-ui-touch-punch


To make sortable work on mobile. Im using touch-punch like this:

$("#target").sortable({
  // option: 'value1',
  // otherOption: 'value2',
});

$("#target").disableSelection();

Take note of adding disableSelection(); after creating the sortable instance.