cursor-within

2.0.2 • Public • Published

cursor-within

determine if the cursor is within a selector-matched element

Installation

Install with component(1) or NPM:

$ component install bmcmahen/cursor-within
$ npm install cursor-within

Use

var within = require('cursor-within');
var el = within('span.highlighted');

License

MIT

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i cursor-within

    Weekly Downloads

    2

    Version

    2.0.2

    License

    MIT

    Last publish

    Collaborators

    • bmcmahen