anima-yocto-touch
Advanced tools
Comparing version 2.0.4 to 2.0.5-beta.1
{ | ||
"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 @@ }); |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
45437
0
0
336
2