1.0.2 • Published 9 years ago

dragevents2 v1.0.2

Weekly downloads
7
License
ISC
Repository
github
Last release
9 years ago

dragevents2

Inspired by Dragster and Dragbetter

Purpose

This module allows you to bind two new listeners to domNodes: dragenter2 and dragleaver2. They are improved version of the dragenter and dragleave events, which behave more like mouseenter and mouseleave.

This is a pure javascript module and it is browserify compatible.

Demo

link

Usage

var de2 = new dragevents2(elem);
elem.addEventListener('dragenter2', function() {...});
elem.addEventListener('dragleave2', function() {...});
// if you wish to unbind the events
 de2.unbindEvents();