node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

hammer-dragables

hammer-dragables

This is an extension for Hammer.js which implements dragable elements.

Usage

var Dragables = require('hammer-dragables')
 
var dr = new Dragables($('ul'), { handle: 'LI' })
dr.on('start', function (event, dragging) {
  console.log('start', dragging)
})
dr.on('move', function (event, dragging) {
  console.log('move', dragging)
})
dr.on('end', function (event, dragging) {
  console.log('end', dragging)
})

Install

$ npm install hammer-dragables

License

MIT