3.2.5 • Published 10 months ago

draggify v3.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

draggify

Make a HTMLElement draggable

  1. Draggify supports touch on mobile devices.
  2. Draggify is very fast.

usage

npm i -S draggify
import draggify from 'draggify';

draggify(document.querySelector('#element'), {
    // Whether horizontal movement is allowed.
    x: true,
    // Whether vertical movement is allowed.
    y: true,
    // A callback performed in idle time after the dragging has finished.
    idle: () =>  { 
        console.log('xxxx')
    },
    // Garbage collection.
    gc: true
});

Have a try

https://yegao.github.io/draggify

3.1.3

11 months ago

3.1.2

11 months ago

3.1.1

11 months ago

3.0.2

11 months ago

3.0.1

11 months ago

3.2.5

10 months ago

3.1.4

11 months ago

2.1.2

11 months ago

2.1.1

11 months ago

2.1.0

11 months ago

2.0.1

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago

1.0.4

11 months ago

2.0.0

11 months ago

1.0.3

11 months ago

0.0.0-0

2 years ago

0.0.0

2 years ago