Created
December 26, 2015 09:46
-
-
Save osv/5bc2133fec659c6f7f0c to your computer and use it in GitHub Desktop.
Prevent default drop behavior (loading a file) outside of the drop zone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prevent default drop behavior (loading a file) outside of the drop zone | |
window.addEventListener 'dragover', ((e) -> e.preventDefault()), false | |
window.addEventListener 'drop', ((e) -> e.preventDefault()), false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment