March 30, 2014
dragbetter is a jQuery plugin for a no-bullshit solution for `dragenter` and `dragleave` events that behave like `mouseenter` and `mouseleave`, not `mousein` and `mouseout`.
There are two similar pairs of events that track mouse movement: mousein+mouseout and mouseenter+mouseleave. Let’s say we’re listening for these events on the <body> element. The mouseenter and mouseleave events would fire only when mouse pointer enters or leaves the <body> element itself. The mousein and mouseout events would trigger whenever mouse pointer crosses the border of any child within, with event.target set to the child and the child’s parent respectively.
Created by Andrey Mikhaylov
© 2013 jquer.in
Curated By Jay Kanakiya