g6-hammerjs
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
253974
149
6807