diff --git a/src/assets/default-project/en/Newly_added_features.md b/src/assets/default-project/en/Newly_added_features.md index 55de1032c0..2bad064987 100644 --- a/src/assets/default-project/en/Newly_added_features.md +++ b/src/assets/default-project/en/Newly_added_features.md @@ -7,7 +7,7 @@ We are continuously adding features every week to improve the life of web develo Here's a list of top features recently added to Phoenix: -## Drag and Drop Files and Folders in Desktop Apps - Experimental +## Drag and Drop Files and Folders in Desktop Apps `Added on June, 2024` @@ -18,6 +18,8 @@ Code to open individual files. Drop a folder to open it as a project. > Linux distributions. To enable it, select menu > `Debug -> Experimental Features -> Drag And Drop Files.` +> This feature is not available in the browser version @ phcode.dev + ![drag and drop](https://github.com/phcode-dev/phoenix/assets/5336369/ddd96ff7-bc99-46a6-a62d-6f6f5b78438b)

HTML Validation

diff --git a/src/utils/DragAndDrop.js b/src/utils/DragAndDrop.js index 9b2c49ce4a..167322a8e9 100644 --- a/src/utils/DragAndDrop.js +++ b/src/utils/DragAndDrop.js @@ -277,7 +277,9 @@ define(function (require, exports, module) { // Show the fileDrop window await fileDropWindow.show(); await fileDropWindow.setAlwaysOnTop(true); - await fileDropWindow.setAlwaysOnTop(false); + // the fileDropWindow window will always be on top as the window itslef has logic to dismiss itself if mouse + // exited it. Also, if we dont to that, in mac in some cases, the window will go to the background while + // dragging. So while this window is visible, this will alwyas be on top. } /**