diff options
author | Matěj Cepl <mcepl@redhat.com> | 2014-02-25 19:07:05 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2014-02-25 19:07:05 +0100 |
commit | 11f08a52655f84cfdd0701eb5c50f54f19574309 (patch) | |
tree | 99ffc7169ae101c3f6eccbe63d5e9bbc4db27bff /zalmy.js | |
parent | 2177066ade62492f9acd0018243eefd378563292 (diff) | |
download | zalmy-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.js | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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(); } }; |