diff options
-rw-r--r-- | zalmy.appcache | 2 | ||||
-rw-r--r-- | zalmy.js | 5 | ||||
-rw-r--r-- | zalmy.ts | 6 |
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 @@ -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(); } }; @@ -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(); - } } /** |