fix logic with gestures

This commit is contained in:
r888888888
2017-09-26 14:29:05 -07:00
parent d48df46ea5
commit b8466a6aaa

View File

@@ -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)});
}