Skip to content

Commit 646f5b0

Browse files
committed
fix: drag drop window draw issues in mac
1 parent 40facc8 commit 646f5b0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/assets/default-project/en/Newly_added_features.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ We are continuously adding features every week to improve the life of web develo
77

88
Here's a list of top features recently added to Phoenix:
99

10-
## Drag and Drop Files and Folders in Desktop Apps - Experimental
10+
## Drag and Drop Files and Folders in Desktop Apps
1111

1212
`Added on June, 2024`
1313

@@ -18,6 +18,8 @@ Code to open individual files. Drop a folder to open it as a project.
1818
> Linux distributions. To enable it, select menu
1919
> `Debug -> Experimental Features -> Drag And Drop Files.`
2020
21+
> This feature is not available in the browser version @ phcode.dev
22+
2123
![drag and drop](https://github.com/phcode-dev/phoenix/assets/5336369/ddd96ff7-bc99-46a6-a62d-6f6f5b78438b)
2224

2325
<h2><a target="_blank" href="https://docs.phcode.dev/docs/Features/Problems%20Panel/html-lint/">HTML Validation</a></h2>

src/utils/DragAndDrop.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ define(function (require, exports, module) {
277277
// Show the fileDrop window
278278
await fileDropWindow.show();
279279
await fileDropWindow.setAlwaysOnTop(true);
280-
await fileDropWindow.setAlwaysOnTop(false);
280+
// the fileDropWindow window will always be on top as the window itslef has logic to dismiss itself if mouse
281+
// exited it. Also, if we dont to that, in mac in some cases, the window will go to the background while
282+
// dragging. So while this window is visible, this will alwyas be on top.
281283
}
282284

283285
/**

0 commit comments

Comments
 (0)