New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

oribella-tap

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oribella-tap - npm Package Compare versions

Comparing version

to
0.4.1

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="0.4.1"></a>
## 0.4.1 (2016-02-22)
### Bug Fixes
* **index:** update to use correct `pointers` ([0241f4a](https://github.com/oribella/tap/commit/0241f4a))
<a name="0.4.0"></a>

@@ -2,0 +12,0 @@ # 0.4.0 (2016-02-22)

10

dist/amd/index.js

@@ -38,4 +38,4 @@ define(["exports", "oribella-framework"], function (exports, _oribellaFramework) {

value: function start(event, pointers) {
this.data = pointers;
this.startPoint = pointers.pagePoints[0];
this.data.pointers = pointers;
this.startPoint = pointers[0].page;
this.result = this.subscriber.start(event, this.data, this.element);

@@ -47,3 +47,3 @@ return _oribellaFramework.RETURN_FLAG.map(this.result) + _oribellaFramework.RETURN_FLAG.STARTED;

value: function update(event, pointers) {
if (pointers.pagePoints[0].distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) {
if (pointers[0].page.distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) {
return _oribellaFramework.RETURN_FLAG.REMOVE;

@@ -56,3 +56,3 @@ }

value: function end(event, pointers) {
this.data = pointers;
this.data.pointers = pointers;
this.result = this.subscriber.end(event, this.data, this.element);

@@ -64,3 +64,3 @@ return _oribellaFramework.RETURN_FLAG.map(this.result);

value: function cancel(event, pointers) {
this.data = pointers;
this.data.pointers = pointers;
this.subscriber.cancel(event, this.data, this.element);

@@ -67,0 +67,0 @@ }

@@ -39,4 +39,4 @@ "use strict";

value: function start(event, pointers) {
this.data = pointers;
this.startPoint = pointers.pagePoints[0];
this.data.pointers = pointers;
this.startPoint = pointers[0].page;
this.result = this.subscriber.start(event, this.data, this.element);

@@ -48,3 +48,3 @@ return _oribellaFramework.RETURN_FLAG.map(this.result) + _oribellaFramework.RETURN_FLAG.STARTED;

value: function update(event, pointers) {
if (pointers.pagePoints[0].distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) {
if (pointers[0].page.distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) {
return _oribellaFramework.RETURN_FLAG.REMOVE;

@@ -57,3 +57,3 @@ }

value: function end(event, pointers) {
this.data = pointers;
this.data.pointers = pointers;
this.result = this.subscriber.end(event, this.data, this.element);

@@ -65,3 +65,3 @@ return _oribellaFramework.RETURN_FLAG.map(this.result);

value: function cancel(event, pointers) {
this.data = pointers;
this.data.pointers = pointers;
this.subscriber.cancel(event, this.data, this.element);

@@ -68,0 +68,0 @@ }

@@ -41,4 +41,4 @@ System.register(["oribella-framework"], function (_export) {

value: function start(event, pointers) {
this.data = pointers;
this.startPoint = pointers.pagePoints[0];
this.data.pointers = pointers;
this.startPoint = pointers[0].page;
this.result = this.subscriber.start(event, this.data, this.element);

@@ -50,3 +50,3 @@ return RETURN_FLAG.map(this.result) + RETURN_FLAG.STARTED;

value: function update(event, pointers) {
if (pointers.pagePoints[0].distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) {
if (pointers[0].page.distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) {
return RETURN_FLAG.REMOVE;

@@ -59,3 +59,3 @@ }

value: function end(event, pointers) {
this.data = pointers;
this.data.pointers = pointers;
this.result = this.subscriber.end(event, this.data, this.element);

@@ -67,3 +67,3 @@ return RETURN_FLAG.map(this.result);

value: function cancel(event, pointers) {
this.data = pointers;
this.data.pointers = pointers;
this.subscriber.cancel(event, this.data, this.element);

@@ -70,0 +70,0 @@ }

{
"name": "oribella-tap",
"version": "0.4.0",
"version": "0.4.1",
"description": "Tap gesture",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -20,4 +20,4 @@ import {RETURN_FLAG} from "oribella-framework";

start(event, pointers) {
this.data = pointers;
this.startPoint = pointers.pagePoints[0];
this.data.pointers = pointers;
this.startPoint = pointers[0].page;
this.result = this.subscriber.start(event, this.data, this.element);

@@ -28,3 +28,3 @@ return RETURN_FLAG.map(this.result) +

update(event, pointers) {
if (pointers.pagePoints[0].distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) {
if (pointers[0].page.distanceTo(this.startPoint) > this.subscriber.options.radiusThreshold) {
return RETURN_FLAG.REMOVE;

@@ -35,3 +35,3 @@ }

end(event, pointers) {
this.data = pointers;
this.data.pointers = pointers;
this.result = this.subscriber.end(event, this.data, this.element);

@@ -41,5 +41,5 @@ return RETURN_FLAG.map(this.result);

cancel(event, pointers) {
this.data = pointers;
this.data.pointers = pointers;
this.subscriber.cancel(event, this.data, this.element);
}
}