Skip to content

Commit f3d5fa2

Browse files
committed
Fixed issue with dragging project file
1 parent 8a5551c commit f3d5fa2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

TODO

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ definition([
2020
])
2121

2222
// project files
23-
// check palette copy to file works correctly
24-
// drag project error (check other files too)
2523

2624
/* https://unix.stackexchange.com/questions/585645/launch-an-application-by-a-double-click */
2725
// provide a custom definition, but have a default

app/components/project/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ const Project = observer(() => {
4242
accessor="projectPath"
4343
onChange={(path) => {
4444
if (path) {
45-
workspace.openProject();
45+
// rAF avoids 'hover while not dragging' error
46+
requestAnimationFrame(workspace.openProject);
4647
}
4748
}}
4849
ext="flex.json"

0 commit comments

Comments
 (0)