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

[ENHANCEMENT] Customize the drop event handler #1316

Open
clarkmcc opened this issue Jul 24, 2023 · 1 comment
Open

[ENHANCEMENT] Customize the drop event handler #1316

clarkmcc opened this issue Jul 24, 2023 · 1 comment

Comments

@clarkmcc
Copy link

Is your feature request related to a problem? Please describe.
Drag and drop functionality does not work when used in a Tauri app because of this issue. tauri-apps/tauri#2768 (comment)

Describe the solution you'd like
I'd like to customize how the drop event handler is registered, and provide a Tauri specific event handler.

import { listen } from '@tauri-apps/api/event'

listen('tauri://file-drop', event => {
  console.log(event)
})
@Dan86de
Copy link

Dan86de commented Jul 27, 2023

Worth mentioning here is this event is triggered few times with same input. I currently have this problem on macOS dev mode.

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

No branches or pull requests

2 participants