|
@@ -1564,7 +1564,11 @@
|
|
|
var lastClickedFileID = 0;
|
|
var lastClickedFileID = 0;
|
|
|
function bindFileObjectEvents(){
|
|
function bindFileObjectEvents(){
|
|
|
$(".fileObject").off("click").on("click",function(evt){
|
|
$(".fileObject").off("click").on("click",function(evt){
|
|
|
- evt.stopImmediatePropagation();
|
|
|
|
|
|
|
+ if (isMobile){
|
|
|
|
|
+ //There are no context menu in mobile
|
|
|
|
|
+ //Stop event propagation to document.click event
|
|
|
|
|
+ evt.stopImmediatePropagation();
|
|
|
|
|
+ }
|
|
|
if (renameMode && $(this).find(".renameinput").length == 0){
|
|
if (renameMode && $(this).find(".renameinput").length == 0){
|
|
|
exitRenameModeWithConfirm();
|
|
exitRenameModeWithConfirm();
|
|
|
return;
|
|
return;
|
|
@@ -2828,7 +2832,7 @@
|
|
|
//Drop the first segment, only keep last one in extreme cases
|
|
//Drop the first segment, only keep last one in extreme cases
|
|
|
console.log(counter, l);
|
|
console.log(counter, l);
|
|
|
domPathChunks.shift();
|
|
domPathChunks.shift();
|
|
|
- fullpath = `<div class="section">...</div>` + domPathChunks.join(`<div class="divider">/</div>`);
|
|
|
|
|
|
|
+ fullpath = `<div class="section">...</div><div class="divider">/</div>` + domPathChunks.join(`<div class="divider">/</div>`);
|
|
|
$("#pre-render").html(fullpath);
|
|
$("#pre-render").html(fullpath);
|
|
|
pathWidth = $("#pre-render").width();
|
|
pathWidth = $("#pre-render").width();
|
|
|
counter++;
|
|
counter++;
|