diff --git a/js/ui/navdock.js b/js/ui/navdock.js index 9a0dddcf76..852117dfee 100644 --- a/js/ui/navdock.js +++ b/js/ui/navdock.js @@ -69,9 +69,7 @@ $.fn.elfindernavdock = function(fm, opts) { resize(Math.min(tH, wzH * maxHeight)); return self; - }); - - self.data('removeNode', function(nodeId, appendTo) { + }).data('removeNode', function(nodeId, appendTo) { var cNode = $('#'+nodeId); delete sizeSyncs[nodeId]; self.height(self.height() - $('#'+nodeId).outerHeight(true)); @@ -85,6 +83,11 @@ $.fn.elfindernavdock = function(fm, opts) { self.height(0).hide(); } fm.trigger('wzresize'); + }).on('touchmove', function(e) { + if (! $(e.target).hasClass('elfinder-quicklook-preview')) { + // prevent swipe action on contents preview + e.stopPropagation(); + } }); if (! opts.disabled) {