mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-28 03:47:37 +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>
544 B
544 B
@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