Triggers 'mouseexit' event when mouse focus has completely left the element. This type of behaviour is especially desirable for non-modal overlays.
npm install jquery-mouse-exitjQuery collection plugin that triggers a 'mouseExit' event only when the mouse cursor has completely left the given element.
``js
// init plugin
$(collection).mouseExit(options);
// handle event
$(collection).on('mouseExit', function(e, data) {
console.log(data.lostFocus, data.gainedFocus);
})
`
`js`
npm install jquery-mouse-exit
* delay - milliseconds in delay before triggering mouseExit event
All tests are located in test.js.
Useful NPM scripts:
* npm start for local browser-sync development of gh-pagesnpm test
* runs tests & generates reports (see reports section below)npm run tdd
* test driven development: watches code and re-tests after any changenpm run build
* cleans, lints, tests and minifies (called on npm prepublish hook)
Execute npm run to view all available CLI scripts.
Each test run will generate the following reports:
* /test_reports/coverage contains Istanbul code coverage report/test_reports/html
* contains HTML test report/test_reports/junit` contains JUnit test report
*
https://travis-ci.org/makeup-jquery/jquery-mouse-exit
https://coveralls.io/github/makeup-jquery/jquery-mouse-exit?branch=master