Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
dev
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Leaflet.OverIntent

Aiming is neater than clicking !

This plugins adds a new event mouseintent, that differs from mouseover since it reflects user intentions to aim a particular layer.

Observe the difference with the online demo.

Usage

    var marker = L.marker([lat, lng]).addTo(map);

    marker.on('mouseintent', function (e) {
        // User meant it !
    });

( works with markers and vectorial layers )

Options

  • intentDuration : default is 300ms (See demo.)

Authors

Makina Corpus

About

Adds a mouseintent event that guess user intentions to hover layers!

Resources

License

Packages

No packages published
You can’t perform that action at this time.