Get new jQuery plugins just once a week



March 30, 2014

An alternative to dragenter and dragleave events that fires each event once.

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 set to the child and the child’s parent respectively.

Created by Andrey Mikhaylov



dragbetter jquery plugin

drag events


Related posts:

drag-better jquery plugin

jQuery plugin

Sign up for our weekly newsletter.

* We won't spam you ever
Couple Gift Ideas