Original module: https://github.com/Juicetan/mickdragger Original author: Juicetan
-
Fetch the plugin
The plugin is available using the Node Package Manager(npm)
$ npm install iecdragger --save
-
Include plugin script
<script> import mickdragger from 'iecdragger'; </script>
-
Create a instance of MickDragger with DOM element
var $dragEl = document.querySelector('.drag'); var mickDragger = new MickDragger($dragEl);
-
Add event listener
mickDragger.on(MickDragger.event.THRESHOLD, function(){ // do awesome things });
You can follow the instructions here: https://github.com/Juicetan/mickdragger
On top of the ones included here: https://github.com/Juicetan/mickdragger
Name | Default | Description |
---|---|---|
stopPropagation | true|false |
Stops the propagation when dragging the element. |
verbose | true|false |
Print events in the console. |
You can follow the instructions here: https://github.com/Juicetan/mickdragger