From b8466a6aaab80389412ef18e291da3fb6fb1c14b Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 26 Sep 2017 14:29:05 -0700 Subject: [PATCH] fix logic with gestures --- app/assets/javascripts/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/posts.js b/app/assets/javascripts/posts.js index 8fb5c22c3..eb5f00da0 100644 --- a/app/assets/javascripts/posts.js +++ b/app/assets/javascripts/posts.js @@ -57,7 +57,7 @@ } else if ((percentage > 0.3 || (percentage > 0.1 && swipe)) && hasPrev) { $("body").css({"transition-timing-function": "ease", "transition-duration": "0.3s", "opacity": "0", "transform": "translateX(150%)"}); $.timeout(300).done(function() {Danbooru.Post.swipe_prev(e)}); - } else if (percentage < -0.3 || (percentage < -0.1 && swipe) && hasNext) { + } else if ((percentage < -0.3 || (percentage < -0.1 && swipe)) && hasNext) { $("body").css({"transition-timing-function": "ease", "transition-duration": "0.3s", "opacity": "0", "transform": "translateX(-150%)"}); $.timeout(300).done(function() {Danbooru.Post.swipe_next(e)}); }