mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-27 21:16:22 +03:00
261c9f942d
* refacotr!(core & api): rename drag events for better consistency and clarity * more renames * remove imports * fix drag over listen * update example --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app>
18 lines
544 B
Markdown
18 lines
544 B
Markdown
---
|
|
"@tauri-apps/api": "patch:breaking"
|
|
---
|
|
|
|
Renamed drag and drop events in `TauriEvent` enum to better convey when they are triggered:
|
|
|
|
- `TauriEvent.DRAG` -> `TauriEvent.DRAG_ENTER`
|
|
- `TauriEvent.DROP_OVER` -> `TauriEvent.DRAG_OVER`
|
|
- `TauriEvent.DROP` -> `TauriEvent.DRAG_DROP`
|
|
- `TauriEvent.DROP_CANCELLED` -> `TauriEvent::DRAG_LEAVE`
|
|
|
|
Also the `type` field values in `Window/Webview/WebviewWindow.onDropEvent` and `DragDropEvent` have changed:
|
|
|
|
- `dragged` -> `enter`
|
|
- `dragOver` -> `over`
|
|
- `dropped` -> `drop`
|
|
- `cancelled` -> `leave`
|