Permalink
Browse files

Merge pull request #1 from miketaylr/master

Cancel dragenter
  • Loading branch information...
2 parents 0065613 + a446685 commit d42513913dfc704241339651da84b8b6d9256353 Sam Breed committed Apr 30, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 example.js
View
@@ -34,6 +34,11 @@ function dropHandler(e){
}
+document.addEventListener('dragenter', function(e){
+ e.preventDefault();
+ e.stopPropagation();
+}, false);
+
document.addEventListener('dragover', function(e){
e.preventDefault();
e.stopPropagation();

0 comments on commit d425139

Please sign in to comment.