Skip to content

Commit

Permalink
[ui:navdock] prevent swipe action on contents preview
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Aug 31, 2017
1 parent 197d0e7 commit 78727c9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions js/ui/navdock.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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) {
Expand Down

0 comments on commit 78727c9

Please sign in to comment.