5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 15:11:53 +08:00

Fix drag and drop missing cursor icon (#3703)

* fix: darg and drop missing cursor icon

* chore: update change log
This commit is contained in:
Mohamed Feddad 2024-08-25 14:16:09 +04:00 committed by GitHub
parent 4b6a8e17c5
commit f8c8611219
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,7 @@ function onDragOver(e) {
if (!window.wails.flags.enableWailsDragAndDrop) { if (!window.wails.flags.enableWailsDragAndDrop) {
return; return;
} }
e.dataTransfer.dropEffect = 'copy';
e.preventDefault(); e.preventDefault();
if (!flags.useDropTarget) { if (!flags.useDropTarget) {

View File

@ -454,6 +454,7 @@
if (!window.wails.flags.enableWailsDragAndDrop) { if (!window.wails.flags.enableWailsDragAndDrop) {
return; return;
} }
e.dataTransfer.dropEffect = 'copy';
e.preventDefault(); e.preventDefault();
if (!flags.useDropTarget) { if (!flags.useDropTarget) {
return; return;

View File

@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added nil check for Drag-n-Drop on Windows. Fixed by in [PR](https://github.com/wailsapp/wails/pull/3597) by @leaanthony based on the suggestion by @Alpa-1 in [#3596](https://github.com/wailsapp/wails/issues/3596). - Added nil check for Drag-n-Drop on Windows. Fixed by in [PR](https://github.com/wailsapp/wails/pull/3597) by @leaanthony based on the suggestion by @Alpa-1 in [#3596](https://github.com/wailsapp/wails/issues/3596).
- Fixed typos in various .mdx files. [PR #3628](https://github.com/wailsapp/wails/pull/3628) by [@deining](https://github.com/deining) - Fixed typos in various .mdx files. [PR #3628](https://github.com/wailsapp/wails/pull/3628) by [@deining](https://github.com/deining)
- Fixed `notifyListeners()` race condition when terminated mid-emission [PR](https://github.com/wailsapp/wails/pull/3695) by [@mrf345](https://github.com/mrf345) - Fixed `notifyListeners()` race condition when terminated mid-emission [PR](https://github.com/wailsapp/wails/pull/3695) by [@mrf345](https://github.com/mrf345)
- Fixed drag and drop missing cursor icon [PR](https://github.com/wailsapp/wails/pull/3703) by [@mrf345](https://github.com/mrf345)
## v2.9.1 - 2024-06-18 ## v2.9.1 - 2024-06-18