summaryrefslogtreecommitdiffstats
path: root/zalmy.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2014-02-25 19:07:05 +0100
committerMatěj Cepl <mcepl@redhat.com>2014-02-25 19:07:05 +0100
commit11f08a52655f84cfdd0701eb5c50f54f19574309 (patch)
tree99ffc7169ae101c3f6eccbe63d5e9bbc4db27bff /zalmy.js
parent2177066ade62492f9acd0018243eefd378563292 (diff)
downloadzalmy-11f08a52655f84cfdd0701eb5c50f54f19574309.tar.gz
Don't scroll to the top when not changing psalm but just scrolling.
Diffstat (limited to 'zalmy.js')
-rw-r--r--zalmy.js5
1 files changed, 1 insertions, 4 deletions
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();
}
};