@mizchi/jquery-draghover

Emulates draghover event by tracking dragenter / dragleave events of element + children.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@mizchi/jquery-draghover
Minified + gzip package size for @mizchi/jquery-draghover in KB

Readme

jquery.draghover.js

Emulates draghover event by tracking dragenter / dragleave events of element + children.

https://gist.github.com/gists/3794126 http://stackoverflow.com/a/10310815/4196

Example:

$(window).draghover().on({

    'draghoverstart': function() {
        console.log('A file has been dragged into the window.');
    },

    'draghoverend': function() {
        console.log('A file has been dragged out of the window.');
    }

});

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.