Socket
Socket
Sign inDemoInstall

cursor-move

Package Overview
Dependencies
10
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cursor-move

monitor cursor movements


Version published
Weekly downloads
2
Maintainers
1
Install size
79.1 kB
Created
Weekly downloads
 

Readme

Source

cursor-change

an event emitter for when the cursor position changes in a contenteditable document

Installation

Install with component(1) or duo or NPM.

$npm install cursor-change

Usage

var el = document.getElementsByTagName('div')[0];
var cursor = require('bmcmahen/cursor-change@1.0.0')(el);
cursor.on('change', function(pos){
  console.log('changed to', pos);
});

setTimeout(function(){
  cursor.unbind();
}, 10000);

Note

This specifically does not emit an event for selections. For that, use bmcmahen/monitor-text-selection.

License

MIT

Keywords

FAQs

Last updated on 17 Nov 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc