You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am in the middle of a drag & drop operation (dragging in a file outside of the app into the app), if I click the Escape key to cancel the drag & drop before I actually drop the file, the onDragDropEvent() handler will not get an event for that cancellation.
See this console log output as an example:
The first line shows my onDragDropEvent() handler registering the dragged event. The second line appears when I click the Escape key.
The referenced line in the stack trace, webview.js:481 is the following:
I wonder if position should allowed to be null/undefined and/or always report the last-known point if unknown.
P.S. I only tested this on macOS, but I imagine that behavior would be similar on Windows and Linux?
[Error] TypeError: null is not an object (evaluating 'event.payload.position')
(anonymous function) (webview.js:481)
value (user-script:5:227)
value (user-script:5:299)
(anonymous function) (Script Element 16:1:91)
Global Code (Script Element 16:1:173)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When I am in the middle of a drag & drop operation (dragging in a file outside of the app into the app), if I click the Escape key to cancel the drag & drop before I actually drop the file, the
onDragDropEvent()
handler will not get an event for that cancellation.See this console log output as an example:
The first line shows my
onDragDropEvent()
handler registering thedragged
event. The second line appears when I click the Escape key.The referenced line in the stack trace,
webview.js:481
is the following:I wonder if
position
should allowed to be null/undefined and/or always report the last-known point if unknown.P.S. I only tested this on macOS, but I imagine that behavior would be similar on Windows and Linux?
Reproduction
Expected behavior
Another event should fire with the cancellation information.
Full
tauri info
outputStack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: