From 5d249ee91368eb4b519f3cd4fb28ff6c85d33b74 Mon Sep 17 00:00:00 2001 From: pichalite Date: Fri, 13 May 2016 11:17:00 -0700 Subject: [PATCH] fixes NodeBB/NodeBB#4483 (#277) --- lib/persona.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/persona.js b/lib/persona.js index aa11570..185ab34 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -3,13 +3,13 @@ /*globals ajaxify, config, utils, app, socket, Slideout, NProgress*/ $(document).ready(function() { + var env = utils.findBootstrapEnvironment(); + setupNProgress(); setupTaskbar(); setupEditedByIcon(); setupMobileMenu(); - var env = utils.findBootstrapEnvironment(); - if (env === 'xs' || env ==='sm') { $(".navbar-fixed-top").autoHidingNavbar({ showOnBottom: false @@ -124,6 +124,10 @@ $(document).ready(function() { 'tolerance': 70, 'side': 'right' }); + + if (env !== 'xs') { + slideout.disableTouch(); + } $('#mobile-menu').on('click', function() { slideout.toggle();