diff options
author | Thibaud Lepretre <thibaud.lepretre@gmail.com> | 2021-09-08 12:59:19 +0300 |
---|---|---|
committer | Thibaud Lepretre <thibaud.lepretre@gmail.com> | 2021-09-08 12:59:19 +0300 |
commit | 84bcf43acc0463d5a6a12501c4f9bb5b61e87202 (patch) | |
tree | 26593b893793bb8f090f59ffddd6044ec130280d /src | |
parent | 62893d72e7fd085b8b120f41c7a2bf8431950ac7 (diff) |
Fix eslint
Diffstat (limited to 'src')
-rwxr-xr-x | src/js/sidebar.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/js/sidebar.js b/src/js/sidebar.js index 5d7f13c..4e6409d 100755 --- a/src/js/sidebar.js +++ b/src/js/sidebar.js @@ -58,7 +58,7 @@ xDown = firstTouch.clientX; yDown = firstTouch.clientY; } - }).on('touchmove', function(e) { + }).on('touchmove', function(e) { if ((!xDown || !yDown) || !self.$sidebar.hasClass('pushed')) { return; } @@ -70,9 +70,9 @@ var yDiff = yDown - yUp; if (Math.abs(xDiff) > Math.abs(yDiff)) { - if (xDiff > 0) { - self.closeSidebar(); - } + if (xDiff > 0) { + self.closeSidebar(); + } } xDown = null; |