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.5 to 0.0.6

LEGAL.md

10

lib/input/touch.js

@@ -89,8 +89,8 @@ "use strict";

target
} = this; // get target touches from touches
} = this; //// get target touches from touches 小程序下targets是空,不太需要
//targetTouches = allTouches.filter((touch) => {
// return hasParent(touch.target, target);
//});
// collect touches
targetTouches = allTouches.filter(touch => {
return (0, _hasParent.default)(touch.target, target);
}); // collect touches
if (type === _inputConsts.INPUT_START) {

@@ -97,0 +97,0 @@ i = 0;

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

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

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

@@ -78,6 +78,6 @@ import {

// get target touches from touches
targetTouches = allTouches.filter((touch) => {
return hasParent(touch.target, target);
});
//// get target touches from touches 小程序下targets是空,不太需要
//targetTouches = allTouches.filter((touch) => {
// return hasParent(touch.target, target);
//});

@@ -84,0 +84,0 @@ // collect touches

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