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 - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

README.md

16

index.js

@@ -16,3 +16,5 @@ var Stream = require('stream'),

opts = options || {},
target = opts.target || node,
startTarget = opts.start || node,
moveTarget = opts.move || node,
endTarget = opts.end || node,
isDown = false;

@@ -31,11 +33,11 @@

// add the appropriate listeners
node.addEventListener('touchstart', function(evt) {
startTarget.addEventListener('touchstart', function(evt) {
data('start', evt.changedTouches, evt);
});
node.addEventListener('touchmove', function(evt) {
moveTarget.addEventListener('touchmove', function(evt) {
data('move', evt.targetTouches, evt);
});
node.addEventListener('touchend', function(evt) {
endTarget.addEventListener('touchend', function(evt) {
data('end', evt.changedTouches, evt);

@@ -46,3 +48,3 @@ });

else {
node.addEventListener('mousedown', function(evt) {
startTarget.addEventListener('mousedown', function(evt) {
isDown = isDown || (evt.button === 0);

@@ -53,3 +55,3 @@ data(

node.addEventListener('mousemove', function(evt) {
moveTarget.addEventListener('mousemove', function(evt) {
if (isDown) {

@@ -60,3 +62,3 @@ data('move', fakeTouch(evt), evt);

node.addEventListener('mouseup', function(evt) {
endTarget.addEventListener('mouseup', function(evt) {
data('end', fakeTouch(evt), evt);

@@ -63,0 +65,0 @@ });

@@ -11,3 +11,3 @@ {

],
"version": "0.1.0",
"version": "0.1.1",
"dependencies": {

@@ -14,0 +14,0 @@ "feature": "0.0.x"

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