diff --git a/lib/persona.js b/lib/persona.js index 48cd094..0ad23fd 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -166,7 +166,7 @@ $(document).ready(function() { slideout.on('open', openingMenuAndLoad); slideout.on('touchmove', function(target) { var $target = $(target); - if ($target.length && ($target.is('code') || $target.parents('code').length)) { + if ($target.length && ($target.is('code') || $target.parents('code').length || $target.hasClass('preventSlideOut') || $target.parents('.preventSlideOut').length)) { slideout._preventOpen = true; } });