This is an extension for Hammer.js which implements sortable lists.
It depends on hammer-draggables.
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
$ bower install https://github.com/tellnes/hammer-sortables.git
MIT