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

g6-hammerjs

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

g6-hammerjs - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

2

lib/manager.js

@@ -324,3 +324,3 @@ "use strict";

data.preventDefault = function () {
data.srcEvent.preventDefault();
data.srcEvent?.preventDefault();
};

@@ -327,0 +327,0 @@ }

@@ -5,3 +5,3 @@ {

"description": "A javascript library for multi-touch gestures",
"version": "0.0.9",
"version": "0.0.10",
"main": "lib/index.js",

@@ -8,0 +8,0 @@ "unpkg": "dist/hammer.min.js",

@@ -114,3 +114,6 @@ import assign from './utils/assign';

// or when we're in a new session
if (!curRecognizer || (curRecognizer && curRecognizer.state & STATE_RECOGNIZED)) {
if (
!curRecognizer ||
(curRecognizer && curRecognizer.state & STATE_RECOGNIZED)
) {
curRecognizer = session.curRecognizer = null;

@@ -143,3 +146,6 @@ }

// current active recognizer. but only if we don't already have an active recognizer
if (!curRecognizer && recognizer.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED)) {
if (
!curRecognizer &&
recognizer.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED)
) {
curRecognizer = session.curRecognizer = recognizer;

@@ -261,3 +267,4 @@ }

} else {
handlers[event] && handlers[event].splice(inArray(handlers[event], handler), 1);
handlers[event] &&
handlers[event].splice(inArray(handlers[event], handler), 1);
}

@@ -296,3 +303,3 @@ });

data.preventDefault = function () {
data.srcEvent.preventDefault();
data.srcEvent?.preventDefault();
};

@@ -299,0 +306,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