HTML5 dragenter
& dragleave
events suck.
Dragster fires custom events that behave more like mouseenter
or mouseleave
(or CSS's :hover
) that make it easier to deal with complex dropzones with child elements.
Give it a try! The dropzone on the left is listening HTML5's events and the dropzone on the right is listening for Dragster's.
This is a complex dropzone with child elements.
You might have hints telling your users to
Drop a file here!
or a backup file input:
This is a complex dropzone with child elements.
You might have hints telling your users to
Drop a file here!
or a backup file input:
bower install dragster
or
Download & docs on GitHub