-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[v2] Files DragAndDrop bugs #3563
Comments
Hi @Vovan-VE Plese take a look on this example project showing how to implement this feature: The documentation would benefit from more details for sure. If you get it working you are in the great position to write an docs for that feature since you just learned what you did not know before. Please please consider submitting PR. |
@pavelbinar , the demo works in the same way as described above. I'll move a code away from |
Finally I checked Windows. Drop don't work on Windows 10 at all. Drag works. Drop doesn't. |
I have similar issues on Windows 11. ❌If Modified code: // app.go
func (a *App) startup(ctx context.Context) {
a.ctx = ctx
runtime.OnFileDrop(ctx, a.onFileDrop)
}
func (a *App) onFileDrop(x, y int, paths []string) {
runtime.LogInfof(a.ctx, "drop files: %#v\n", paths)
} System Details
|
Checked in v2.9.2 just now. Both subissues are actual still. |
We'll look at this as a priority |
Description
EnableFileDrop: true
, every time D'n'D happens anOnDomReady
is triggered.EnableFileDrop: true, DisableWebViewDrop: true
, D'n'D don't work for files ever. Not sure how this option should be used. I hoped it should prevent p.1 above to happen. (enhance usage documentation)To Reproduce
Expected behaviour
Screenshots
No response
Attempted Fixes
No response
System Details
(v2.9.2 as well - UPD 2024-10-05)
System
Dependencies
Additional context
No response
The text was updated successfully, but these errors were encountered: