oribella-longtap
Advanced tools
Comparing version 0.3.5 to 0.4.0
@@ -0,3 +1,18 @@ | ||
<a name="0.4.0"></a> | ||
# 0.4.0 (2016-02-22) | ||
### Features | ||
* **pointers:** expose pointer object with `page` and `client` properties containing points ([84e61c0](https://github.com/oribella/longtap/commit/84e61c0)) | ||
### BREAKING CHANGES | ||
* pointers: | ||
<a name="0.3.5"></a> | ||
## [0.3.5](https://github.com/oribella/longtap/compare/v0.3.4...v0.3.5) (2015-12-19) | ||
## 0.3.5 (2015-12-19) | ||
@@ -8,3 +23,3 @@ | ||
<a name="0.3.4"></a> | ||
## [0.3.4](https://github.com/oribella/longtap/compare/v0.3.3...v0.3.4) (2015-12-13) | ||
## [0.3.4](https://github.com/oribella/longtap/compare/405abae...v0.3.4) (2015-12-13) | ||
@@ -19,3 +34,3 @@ | ||
<a name="0.3.3"></a> | ||
## [0.3.3](https://github.com/oribella/longtap/compare/v0.3.2...v0.3.3) (2015-12-11) | ||
## [0.3.3](https://github.com/oribella/longtap/compare/6a19258...v0.3.3) (2015-12-11) | ||
@@ -30,3 +45,3 @@ | ||
<a name="0.3.2"></a> | ||
## [0.3.2](https://github.com/oribella/longtap/compare/v0.3.1...v0.3.2) (2015-12-11) | ||
## [0.3.2](https://github.com/oribella/longtap/compare/0290c44...v0.3.2) (2015-12-11) | ||
@@ -41,3 +56,3 @@ | ||
<a name="0.3.1"></a> | ||
## [0.3.1](https://github.com/oribella/longtap/compare/v0.3.0...v0.3.1) (2015-12-10) | ||
## [0.3.1](https://github.com/oribella/longtap/compare/5042688...v0.3.1) (2015-12-10) | ||
@@ -52,3 +67,3 @@ | ||
<a name="0.3.0"></a> | ||
# [0.3.0](https://github.com/oribella/longtap/compare/v0.2.0...v0.3.0) (2015-12-10) | ||
# [0.3.0](https://github.com/oribella/longtap/compare/64bd940...v0.3.0) (2015-12-10) | ||
@@ -55,0 +70,0 @@ |
@@ -44,7 +44,7 @@ define(["exports", "oribella-framework"], function (exports, _oribellaFramework) { | ||
key: "start", | ||
value: function start(event, pagePoints) { | ||
value: function start(event, pointers) { | ||
var _this = this; | ||
this.data.pagePoints = pagePoints; | ||
this.startPoint = pagePoints[0]; | ||
this.data.pointers = pointers; | ||
this.startPoint = pointers[0].page; | ||
this.timeoutId = setTimeout(function () { | ||
@@ -59,11 +59,12 @@ _this.valid = true; | ||
key: "update", | ||
value: function update(event, pagePoints) { | ||
if (pagePoints[0].distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) { | ||
value: function update(event, pointers) { | ||
if (pointers[0].page.distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) { | ||
return _oribellaFramework.RETURN_FLAG.REMOVE; | ||
} | ||
return undefined; | ||
} | ||
}, { | ||
key: "end", | ||
value: function end(event, pagePoints) { | ||
this.data.pagePoints = pagePoints; | ||
value: function end(event, pointers) { | ||
this.data.pointers = pointers; | ||
clearTimeout(this.timeoutId); | ||
@@ -78,4 +79,4 @@ if (!this.valid) { | ||
key: "cancel", | ||
value: function cancel(event, pagePoints) { | ||
this.data.pagePoints = pagePoints; | ||
value: function cancel(event, pointers) { | ||
this.data.pointers = pointers; | ||
clearTimeout(this.timeoutId); | ||
@@ -82,0 +83,0 @@ this.subscriber.cancel(event, this.data, this.element); |
@@ -45,7 +45,7 @@ "use strict"; | ||
key: "start", | ||
value: function start(event, pagePoints) { | ||
value: function start(event, pointers) { | ||
var _this = this; | ||
this.data.pagePoints = pagePoints; | ||
this.startPoint = pagePoints[0]; | ||
this.data.pointers = pointers; | ||
this.startPoint = pointers[0].page; | ||
this.timeoutId = setTimeout(function () { | ||
@@ -60,11 +60,12 @@ _this.valid = true; | ||
key: "update", | ||
value: function update(event, pagePoints) { | ||
if (pagePoints[0].distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) { | ||
value: function update(event, pointers) { | ||
if (pointers[0].page.distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) { | ||
return _oribellaFramework.RETURN_FLAG.REMOVE; | ||
} | ||
return undefined; | ||
} | ||
}, { | ||
key: "end", | ||
value: function end(event, pagePoints) { | ||
this.data.pagePoints = pagePoints; | ||
value: function end(event, pointers) { | ||
this.data.pointers = pointers; | ||
clearTimeout(this.timeoutId); | ||
@@ -79,4 +80,4 @@ if (!this.valid) { | ||
key: "cancel", | ||
value: function cancel(event, pagePoints) { | ||
this.data.pagePoints = pagePoints; | ||
value: function cancel(event, pointers) { | ||
this.data.pointers = pointers; | ||
clearTimeout(this.timeoutId); | ||
@@ -83,0 +84,0 @@ this.subscriber.cancel(event, this.data, this.element); |
@@ -47,7 +47,7 @@ System.register(["oribella-framework"], function (_export) { | ||
key: "start", | ||
value: function start(event, pagePoints) { | ||
value: function start(event, pointers) { | ||
var _this = this; | ||
this.data.pagePoints = pagePoints; | ||
this.startPoint = pagePoints[0]; | ||
this.data.pointers = pointers; | ||
this.startPoint = pointers[0].page; | ||
this.timeoutId = setTimeout(function () { | ||
@@ -62,11 +62,12 @@ _this.valid = true; | ||
key: "update", | ||
value: function update(event, pagePoints) { | ||
if (pagePoints[0].distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) { | ||
value: function update(event, pointers) { | ||
if (pointers[0].page.distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) { | ||
return RETURN_FLAG.REMOVE; | ||
} | ||
return undefined; | ||
} | ||
}, { | ||
key: "end", | ||
value: function end(event, pagePoints) { | ||
this.data.pagePoints = pagePoints; | ||
value: function end(event, pointers) { | ||
this.data.pointers = pointers; | ||
clearTimeout(this.timeoutId); | ||
@@ -81,4 +82,4 @@ if (!this.valid) { | ||
key: "cancel", | ||
value: function cancel(event, pagePoints) { | ||
this.data.pagePoints = pagePoints; | ||
value: function cancel(event, pointers) { | ||
this.data.pointers = pointers; | ||
clearTimeout(this.timeoutId); | ||
@@ -85,0 +86,0 @@ this.subscriber.cancel(event, this.data, this.element); |
{ | ||
"name": "oribella-longtap", | ||
"version": "0.3.5", | ||
"version": "0.4.0", | ||
"description": "Longtap gesture", | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"oribella-framework": "npm:oribella-framework@^0.3.4" | ||
"oribella-framework": "npm:oribella-framework@^0.4.0" | ||
}, | ||
@@ -33,12 +33,12 @@ "devDependencies": { | ||
"babel-runtime": "npm:babel-runtime@^5.8.24", | ||
"core-js": "npm:core-js@^1.2.6" | ||
"core-js": "npm:core-js@^2.1.0" | ||
} | ||
}, | ||
"dependencies": { | ||
"oribella-framework": "^0.3.4" | ||
"oribella-framework": "^0.4.0" | ||
}, | ||
"devDependencies": { | ||
"jspm": "^0.16.15", | ||
"oribella-dev": "^0.1.7" | ||
"oribella-dev": "^0.1.22" | ||
} | ||
} |
@@ -26,5 +26,5 @@ import {RETURN_FLAG} from "oribella-framework"; | ||
} | ||
start(event, pagePoints) { | ||
this.data.pagePoints = pagePoints; | ||
this.startPoint = pagePoints[0]; | ||
start(event, pointers) { | ||
this.data.pointers = pointers; | ||
this.startPoint = pointers[0].page; | ||
this.timeoutId = setTimeout(() => { | ||
@@ -38,9 +38,10 @@ this.valid = true; | ||
} | ||
update(event, pagePoints) { | ||
if (pagePoints[0].distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) { | ||
update(event, pointers) { | ||
if (pointers[0].page.distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) { | ||
return RETURN_FLAG.REMOVE; | ||
} | ||
return undefined; | ||
} | ||
end(event, pagePoints) { | ||
this.data.pagePoints = pagePoints; | ||
end(event, pointers) { | ||
this.data.pointers = pointers; | ||
clearTimeout(this.timeoutId); | ||
@@ -53,4 +54,4 @@ if (!this.valid) { | ||
} | ||
cancel(event, pagePoints) { | ||
this.data.pagePoints = pagePoints; | ||
cancel(event, pointers) { | ||
this.data.pointers = pointers; | ||
clearTimeout(this.timeoutId); | ||
@@ -57,0 +58,0 @@ this.subscriber.cancel(event, this.data, this.element); |
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
17147
351
+ Addedoribella-framework@0.4.4(transitive)
- Removedoribella-framework@0.3.5(transitive)
Updatedoribella-framework@^0.4.0