Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag and drop opens file instead of adding it #631

Open
github-throwaway opened this issue Dec 23, 2021 · 4 comments
Open

Drag and drop opens file instead of adding it #631

github-throwaway opened this issue Dec 23, 2021 · 4 comments
Labels

Comments

@github-throwaway
Copy link

If you drag a file to the workspace it does not get added but is rather opened. There is no way to go back, you manually have to restart LaserWeb.

laserweb

Laserweb-Workspace.json.txt

@cprezzi
Copy link
Member

cprezzi commented Dec 27, 2021

Drag & Drop was never implemented, and because the frontend is basically a webbrowser, the default behavior to dropping is changing the url to the dropped file. I will check if I could change this.

@easytarget
Copy link
Contributor

I'll see what I can do in my work too; this looks relevant:
https://stackoverflow.com/questions/6756583/prevent-browser-from-loading-a-drag-and-dropped-file?rq=1
The trick will be still allowing drag-n-drop in the files/operations tab when assembling jobs..

@easytarget
Copy link
Contributor

This is now in my fork, hopefully it will be merged to the main branch soon.

Works well, doesnt interfere with in-window dragging, and guides new users into what to do.
easytarget-org@4822c19

@easytarget easytarget added the bug label Apr 7, 2022
@github-throwaway
Copy link
Author

@cprezzi should we get this merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants