Get new jQuery plugins just once a week

×

dragbetter

FavoriteLoadingAdd to favorites

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

Created by Andrey Mikhaylov

Download

Example

dragbetter jquery plugin

drag events

dragbetter

Related posts:

Socialist (Social Media)
Easy List Splitter
ReadRemaining-js
drag-better jquery plugin

http://jquer.in/wp-content/uploads/2014/03/drag-better.jpg

jQuery plugin

Sign up for our weekly newsletter.

* We won't spam you ever