5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-06 11:52:04 +08:00
wails/v2/internal/frontend/runtime/desktop
Jakub Peleška 022a5ffec4
Fix Drag & Drop JS runtime (#3516)
* Feature/1090 native drag and drop for file and folder (#3203)

* implement basic dnd for linux

* implemented windows

* progress changed linux handling and added coordinates to drop

* progress fix drop coordinates on windows

* progress remove log from windows

* progress move js

* update js after merge

* fix event listener registration

* fix segfault on non file drag

* remove logs, fix coordinates

* minor changes, simplify to drop only

* rename EnableWails -> EnableFileDrop

* add documentation (PR id missing)

* add PR id to changelog

* fix remove casting from malloc

* fix nil check for OnFileDrop's callback

* fix nil check for OnFileDrop skip event when nil

* add error message for nil callback in OnFileDrop

---------

Co-authored-by: lyimmi <lelvente.zambo@gmail.com>
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>

* implement native drag and drop for macOS (#3250)

* implement native drag and drop for macOS

* update docs

* add to changelog

* update docs (macOS is supported)

* Fix windows DragAndDrop options

* Fix class unset on dragleave for full frame elements

* improve class unset (nested elements and borders case)

* Fix runtime drop target detection and CSS class assignment

* Edit changelog

* Fix drag-and-drop options in references

* Update v2/internal/frontend/desktop/darwin/WailsWebView.m

* Update v2/internal/frontend/desktop/darwin/WailsWebView.m

---------

Co-authored-by: Zámbó, Levente <levente.zambo@gmail.com>
Co-authored-by: lyimmi <lelvente.zambo@gmail.com>
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: Andrey Pshenkin <andrey.pshenkin@gmail.com>
Co-authored-by: Pavel Binar <pavel@beamtransfer.io>
2024-06-10 15:15:28 +10:00
..
bindings.js [v2] Support Window runtime in JS 2021-09-09 20:10:18 +10:00
browser.js [v2] More updates 2021-09-13 20:48:41 +10:00
calls.js Add garble support (#1793) 2022-09-13 10:05:37 +10:00
clipboard.js Add common text clipboard support (#2228) 2023-01-05 16:41:07 +11:00
contextmenu.js [v2] Add smart default context-menu functionality (backported from v3) (#2748) 2023-06-28 06:35:02 +10:00
draganddrop.js Fix Drag & Drop JS runtime (#3516) 2024-06-10 15:15:28 +10:00
events.js Patch 1 (#2352) 2023-02-25 12:58:59 +11:00
events.test.js Add single listener deregistration (#1969) 2022-10-23 09:03:37 +11:00
ipc.js [v2] Improved runtime builds. 2021-11-29 20:04:38 +11:00
log.js [windows-x] Generate runtime wrapper in project, initial model binding, better error handling in calls, assetdir fix, 2021-08-27 21:11:03 +10:00
main.js Fix Drag & Drop JS runtime (#3516) 2024-06-10 15:15:28 +10:00
screen.js Expose screen dimensions (#1519) 2022-07-16 12:33:37 +10:00
window.js Add Some WindowState (#1349) 2022-08-30 06:52:01 +10:00