From 11f08a52655f84cfdd0701eb5c50f54f19574309 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 25 Feb 2014 19:07:05 +0100 Subject: Don't scroll to the top when not changing psalm but just scrolling. --- zalmy.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'zalmy.js') 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(); } }; -- cgit