Ver Fonte

Fixed rename mode bug for unable to exit by pressing wallpaper

tobychui há 4 anos atrás
pai
commit
635b68cfbb
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      web/desktop.system

+ 5 - 1
web/desktop.system

@@ -1930,7 +1930,7 @@
             if (renameMode == true){
                 //Exit rename mode if the target is not on the editing launchIcon
                 console.log(evt.target);
-                if ($(evt.target).is("body")){
+                if ($(evt.target).is("body") || $(evt.target).attr("id") == "dbg1" || $(evt.target).attr("id") == "dbg2"){
                     //End rename mode
                     exitRenameMode();
                 }
@@ -3190,6 +3190,10 @@
                 let filedata = JSON.parse( decodeURIComponent($(this).attr("filedata")));
                 
                 if (!timeoutId) {
+                    if (renameMode == true){
+                        //Renaming. Do not show hover info tab
+                        return;
+                    }
                     timeoutId = window.setTimeout(function() {
                         let position = [currentMousePosition[0] + 10, currentMousePosition[1] + 10];
                         timeoutId = null;