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

@any-touch/pan

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@any-touch/pan - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

dist/index.es.js

@@ -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"
}
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