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

anima-yocto-touch

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anima-yocto-touch - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5-beta.1

examples/canPreventClickOrNot.md

16

package.json
{
"name": "anima-yocto-touch",
"version": "2.0.4",
"version": "2.0.5-beta.1",
"description": "the touch from yocto",

@@ -22,3 +22,2 @@ "keywords": [

},
"licenses": "MIT",
"main": "./index",

@@ -33,6 +32,6 @@ "entry": {

"devDependencies": {
"atool-build": "0.6.x",
"atool-doc": "^0.1.0",
"atool-build": "^1.0.2",
"atool-doc": "^0.9.0",
"atool-test": "^0.4.4",
"dora": "0.3.x",
"dora": "^0.3.3",
"gh-pages": "^0.11.0"

@@ -43,3 +42,3 @@ },

"test": "atool-test",
"doc": "atool-doc",
"doc": "atool-doc --tpl ./examples/tpl/mobile.ejs",
"doc-build": "atool-doc --build",

@@ -50,3 +49,4 @@ "gh-pages": "atool-doc --build && gh-pages -d __site"

"node": ">=4.0.0"
}
}
},
"license": "MIT"
}

@@ -8,22 +8,4 @@ var $ = require('anima-yocto-core');

var self = this,
gesture = self[name];
gesture = self[name];
function move(event) {
gesture.handler.touchmove(event);
}
function end(event) {
gesture.handler.touchend(event);
document.removeEventListener("touchmove", move, false);
document.removeEventListener("touchend", end, false);
document.removeEventListener("touchcancel", cancel, false);
}
function cancel(event) {
gesture.handler.touchcancel(event);
document.removeEventListener("touchmove", move, false);
document.removeEventListener("touchend", end, false);
document.removeEventListener("touchcancel", cancel, false);
}
var bindEvent = function (element) {

@@ -39,10 +21,14 @@ var $el = $(element);

gesture.handler.touchstart(event);
}, false);
document.addEventListener("touchmove", move, false);
el.addEventListener("touchmove", function(event){
gesture.handler.touchmove(event);
}, false);
el.addEventListener("touchend", function(event){
gesture.handler.touchend(event);
}, false);
document.addEventListener("touchend", end, false);
document.addEventListener("touchcancel", cancel, false);
// event.preventDefault();
el.addEventListener("touchcancel", function(event){
gesture.handler.touchcancel(event);
}, false);

@@ -49,0 +35,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