Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

point

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

point

Capture Touch and Mouse events and emit data as a stream

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
152
decreased by-35.86%
Maintainers
1
Weekly downloads
 
Created
Source

point

Capture touch and mouse events and output a stream of data:

var point = require('point');

window.addEventListener('load', function() {
    var stream = point.capture(document.querySelector('.toucharea'));

    stream.on('data', function(data) {
        console.log(data);
    });
});

This would then generate output similar to the following:

start:0,215,90
move:0,214,90 
move:0,215,88 
move:0,221,84 
move:0,228,78 
move:0,241,74 
move:0,254,71 
move:0,265,71 
move:0,274,71 
move:0,282,71 
move:0,287,77 
move:0,292,86 
move:0,294,100
move:0,296,116
move:0,297,133
move:0,297,150
move:0,297,163
move:0,300,173
move:0,306,181
move:0,314,188
move:0,325,192
move:0,342,192
move:0,350,187
end:0,350,187

FAQs

Package last updated on 03 May 2013

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc