diff options
Diffstat (limited to 'src/js/sidebar.js')
-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; |