Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/sidebar.js')
-rwxr-xr-xsrc/js/sidebar.js8
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;