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

[feat] continually raising tauri://file-drop-hover event and providing current cursor position #8156

Closed
MagicCrazyMan opened this issue Nov 1, 2023 · 6 comments · Fixed by #9100

Comments

@MagicCrazyMan
Copy link

Describe the problem

i am working on an app which is available to highlight some specified html elements while dragging & dropping files (and i need the absolute file path). But i found that tauri://file-drop-hover event only happens once when moving file from outside into inside of the window, and did not raise again while moving inside the winodow, Is it possible to continually raisetauri://file-drop-hover and tell me the newly cursor position?

BTW: I need the absolute path of the dropped file, it is not a solution to disable fileDropEnabled since the chromium native drag & drop feature does not giving me that. or maybe there is some other solution?

Describe the solution you'd like

continually raising tauri://file-drop-hover and providing current cursor position

Alternatives considered

No response

Additional context

No response

@jaydevelopsstuff
Copy link

Any updates on this? Reactive drag hovering is only possible if this is implemented somehow and tauri://file-drop-hover is essentially useless without this, even with the position provided in Tauri 2.0.

@hut36
Copy link

hut36 commented Jan 27, 2024

+1

@denjell-crabnebula
Copy link

Have you seen https://github.com/crabnebula-dev/drag-rs

@jaydevelopsstuff
Copy link

Have you seen https://github.com/crabnebula-dev/drag-rs

@denjell-crabnebula I'm not sure that repo pertains to this. This is an issue with Tauri 2.0 (1.0 drop event doesn't even have cursor pos iirc) and to my most recent knowledge, drag-rs only supports 1.x and is only for initiating a drag, not handling dragover or drop events.

@jaydevelopsstuff
Copy link

@amrbashir I see that Wry has had the necessary changes made, any progress on the Tauri side of things?

@amrbashir
Copy link
Member

being worked on in #9100

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

Successfully merging a pull request may close this issue.

5 participants