New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gesture-helper

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gesture-helper - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

dist/index.js

@@ -495,7 +495,7 @@ (function webpackUniversalModuleDefinition(root, factory) {

if (this.startDirection === 'horizontal') {
deltaX < 0 ? this.emit('pan.x.left', { delta: Math.abs(deltaX), sourceEvent: e }) : this.emit('pan.x.right', { delta: Math.abs(deltaX), sourceEvent: e });
deltaX < 0 ? this.emit('pan.x.left', { delta: deltaX, sourceEvent: e }) : this.emit('pan.x.right', { delta: deltaX, sourceEvent: e });
}
if (this.startDirection === 'vertical') {
deltaY < 0 ? this.emit('pan.y.up', { delta: Math.abs(deltaY), sourceEvent: e }) : this.emit('pan.y.down', { delta: Math.abs(deltaY), sourceEvent: e });
deltaY < 0 ? this.emit('pan.y.up', { delta: deltaY, sourceEvent: e }) : this.emit('pan.y.down', { delta: deltaY, sourceEvent: e });
}

@@ -502,0 +502,0 @@

{
"name": "gesture-helper",
"version": "0.1.3",
"version": "0.1.4",
"description": "a *tiny* touch & mouse library to help make tracking touch interactions more simple.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -161,4 +161,4 @@ 'use strict';

deltaX < 0
? this.emit('pan.x.left', { delta: Math.abs(deltaX), sourceEvent: e })
: this.emit('pan.x.right', { delta: Math.abs(deltaX), sourceEvent: e });
? this.emit('pan.x.left', { delta: deltaX, sourceEvent: e })
: this.emit('pan.x.right', { delta: deltaX, sourceEvent: e });
}

@@ -168,4 +168,4 @@

deltaY < 0
? this.emit('pan.y.up', { delta: Math.abs(deltaY), sourceEvent: e })
: this.emit('pan.y.down', { delta: Math.abs(deltaY), sourceEvent: e });
? this.emit('pan.y.up', { delta: deltaY, sourceEvent: e })
: this.emit('pan.y.down', { delta: deltaY, sourceEvent: e });
}

@@ -172,0 +172,0 @@

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