5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 02:50:36 +08:00
wails/v2/internal/frontend/runtime
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
..
desktop Fix Drag & Drop JS runtime (#3516) 2024-06-10 15:15:28 +10:00
dev fix wss /wails/ipc (#2469) 2024-03-24 12:33:15 +11:00
wrapper Fix Drag & Drop JS runtime (#3516) 2024-06-10 15:15:28 +10:00
assets_dev.go Chore/refactor assetserver (#2250) 2022-12-31 10:36:07 +11:00
assets.go Chore/refactor assetserver (#2250) 2022-12-31 10:36:07 +11:00
events_test.go Add single listener deregistration (#1969) 2022-10-23 09:03:37 +11:00
events.go [chore] lint fixes 2023-11-12 12:30:49 +11:00
ipc_websocket.go [linux] Better Go 1.16 support 2022-01-31 21:21:48 +11:00
ipc_websocket.js fix wss /wails/ipc (#2469) 2024-03-24 12:33:15 +11:00
ipc.go [v2] Remove build constraint for DesktopIPC 2021-11-10 18:12:46 +11:00
ipc.js [v2] Improved runtime builds. 2021-11-29 20:04:38 +11:00
package-lock.json Bump the npm_and_yarn group across 1 directory with 1 update (#3369) 2024-04-04 07:00:34 +11:00
package.json [v2, runtime] Separate runtime js debug build (#2745) 2023-06-27 21:31:08 +10:00
runtime_debug_desktop.go [v2, runtime] Separate runtime js debug build (#2745) 2023-06-27 21:31:08 +10:00
runtime_debug_desktop.js Fix Drag & Drop JS runtime (#3516) 2024-06-10 15:15:28 +10:00
runtime_prod_desktop.go [v2, runtime] Separate runtime js debug build (#2745) 2023-06-27 21:31:08 +10:00
runtime_prod_desktop.js Fix Drag & Drop JS runtime (#3516) 2024-06-10 15:15:28 +10:00
vite.config.ts Add single listener deregistration (#1969) 2022-10-23 09:03:37 +11:00