Skip to content

Commit

Permalink
add dragselect gif
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Jan Beyer committed Oct 4, 2018
1 parent ae38de0 commit d9d932e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@ tests/DragSelect.js
.publish
package-lock.json
npm-debug.log
original/
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -27,6 +27,8 @@ https://thibaultjanbeyer.github.io/DragSelect/
- Free & open source under MIT License
- Ease of use

![dragselect demo](dragselect.gif)

# Why?

Because apparently there is nothing that does not require jquery out there yet.
Expand Down
Binary file added dragselect.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions tests/quicktest.html
Expand Up @@ -25,8 +25,7 @@
var ds = new DragSelect({
selectables: document.getElementsByClassName('item'),
area: document.getElementById('container'),
onDragStart: function(e) { console.log("onStart", this.getCursorPositionDifference( true )); },
onDragMove: function(e) { console.log("onMove", this.getCursorPositionDifference( )); }
callback: function(e) { console.log("selected", e); }
});
</script>
</body>
Expand Down

0 comments on commit d9d932e

Please sign in to comment.