summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--zalmy.appcache2
-rw-r--r--zalmy.js5
-rw-r--r--zalmy.ts6
3 files changed, 3 insertions, 10 deletions
diff --git a/zalmy.appcache b/zalmy.appcache
index c54efa2..a4307aa 100644
--- a/zalmy.appcache
+++ b/zalmy.appcache
@@ -1,5 +1,5 @@
CACHE MANIFEST
-# v4 - 2014-02-25
+# v5 - 2014-02-25
index.html
zalmy.js
style/basic.css
diff --git a/zalmy.js b/zalmy.js
index 88e39de..7010267 100644
--- a/zalmy.js
+++ b/zalmy.js
@@ -100,7 +100,7 @@ var Psalm = (function () {
* jump to today.
*/
Psalm.prototype.handle_move = function (distX, distY) {
- var negligible = 50;
+ var negligible = 100;
console.log('distX = ' + distX);
console.log('distY = ' + distY);
@@ -110,9 +110,6 @@ var Psalm = (function () {
} else if (distX > negligible) {
console.log("swipe right");
this.prev_psalm();
- } else if (Math.abs(distY) > negligible) {
- console.log("jump to today!");
- this.display();
}
};
diff --git a/zalmy.ts b/zalmy.ts
index 56ec610..9f1fe71 100644
--- a/zalmy.ts
+++ b/zalmy.ts
@@ -113,7 +113,7 @@ class Psalm {
* jump to today.
*/
handle_move (distX: number, distY: number) {
- var negligible = 50;
+ var negligible = 100;
console.log('distX = ' + distX);
console.log('distY = ' + distY);
@@ -125,10 +125,6 @@ class Psalm {
console.log("swipe right");
this.prev_psalm();
}
- else if (Math.abs(distY) > negligible) {
- console.log("jump to today!");
- this.display();
- }
}
/**