@any-touch/pan
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -14,3 +14,3 @@ import { __read } from 'tslib'; | ||
function _test(computed) { | ||
var pointLength = computed.pointLength, distance = computed.distance; | ||
var _a = computed, pointLength = _a.pointLength, distance = _a.distance; | ||
return (_isRecognized || _context.threshold <= distance) && _context.pointLength === pointLength; | ||
@@ -17,0 +17,0 @@ } |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("tslib"),n=require("@any-touch/compute"),r=require("@any-touch/recognizer"),o=(e=r)&&"object"==typeof e&&"default"in e?e.default:e,i={name:"pan",threshold:10,pointLength:1};exports.default=function(e){var u=o(i,e),a=!1;function s(e){var t=e.pointLength,n=e.distance;return(a||u.threshold<=n)&&u.pointLength===t}return[u,function(e,n){u.status=r.canResetStatusForPressMoveLike(u.status),void 0!==e.direction&&r.recognizeForPressMoveLike(e,s,u.name,u.status,n,(function(e){var n=t.__read(e,2),r=n[0],o=n[1];u.status=o,a=r}))&&void 0!==e.direction&&n(u.name+e.direction)},[n.ComputeVAndDir,n.ComputeDistance,n.ComputeDeltaXY]]}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("tslib"),n=require("@any-touch/compute"),r=require("@any-touch/recognizer"),o=(e=r)&&"object"==typeof e&&"default"in e?e.default:e,i={name:"pan",threshold:10,pointLength:1};exports.default=function(e){var u=o(i,e),a=!1;function s(e){var t=e,n=t.pointLength,r=t.distance;return(a||u.threshold<=r)&&u.pointLength===n}return[u,function(e,n){u.status=r.canResetStatusForPressMoveLike(u.status),void 0!==e.direction&&r.recognizeForPressMoveLike(e,s,u.name,u.status,n,(function(e){var n=t.__read(e,2),r=n[0],o=n[1];u.status=o,a=r}))&&void 0!==e.direction&&n(u.name+e.direction)},[n.ComputeVAndDir,n.ComputeDistance,n.ComputeDeltaXY]]}; |
{ | ||
"name": "@any-touch/pan", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "any-touch的识别器, 用来识别拖拽手势.", | ||
@@ -17,5 +17,6 @@ "main": "./dist/index", | ||
"dependencies": { | ||
"@any-touch/compute": "^1.0.2", | ||
"@any-touch/recognizer": "^1.0.2", | ||
"@any-touch/shared": "^1.0.2" | ||
"@any-touch/compute": "^1.0.3", | ||
"@any-touch/recognizer": "^1.0.3", | ||
"@any-touch/shared": "^1.0.3", | ||
"tslib": "^2.0.1" | ||
}, | ||
@@ -26,3 +27,3 @@ "publishConfig": { | ||
"sideEffects": false, | ||
"gitHead": "a11a02a110bf20b6163b5b716b60b87de3b967da" | ||
"gitHead": "b02d9990efd384d8336fba46e476a6939964d320" | ||
} |
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
4939
5
+ Addedtslib@^2.0.1
+ Addedtslib@2.8.1(transitive)
Updated@any-touch/compute@^1.0.3
Updated@any-touch/recognizer@^1.0.3
Updated@any-touch/shared@^1.0.3