diff --git a/packages/api/src/webview.ts b/packages/api/src/webview.ts index b5a63646deb9..28bed5b3fed8 100644 --- a/packages/api/src/webview.ts +++ b/packages/api/src/webview.ts @@ -567,7 +567,7 @@ class Webview { * import { getCurrentWebview } from "@tauri-apps/api/webview"; * const unlisten = await getCurrentWebview().onDragDropEvent((event) => { * if (event.payload.type === 'over') { - * console.log('User hovering', event.payload.paths); + * console.log('User hovering', event.payload.position); * } else if (event.payload.type === 'drop') { * console.log('User dropped', event.payload.paths); * } else { diff --git a/packages/api/src/window.ts b/packages/api/src/window.ts index ae648f1b076d..d9a02879c219 100644 --- a/packages/api/src/window.ts +++ b/packages/api/src/window.ts @@ -1771,7 +1771,7 @@ class Window { * import { getCurrentWindow } from "@tauri-apps/api/webview"; * const unlisten = await getCurrentWindow().onDragDropEvent((event) => { * if (event.payload.type === 'over') { - * console.log('User hovering', event.payload.paths); + * console.log('User hovering', event.payload.position); * } else if (event.payload.type === 'drop') { * console.log('User dropped', event.payload.paths); * } else {