This is an extension for Hammer.js which implements sortable lists.
It depens on hammer-dragables.
var options =
{ handle: '.move'
, draggable: 'li'
, axis: 'y'
}
var sortable = new Sortable($('ul'), options)
sortable.on('start', function (event, dragging) {
dragging.element.classList.add('dragging')
})
sortable.on('end', function (event, dragging) {
dragging.element.classList.remove('dragging')
})
sortable.on('change', function (dragging, moved) {
// position changed
})
$ npm install hammer-sortable
MIT