5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 10:59:22 +08:00
wails/v2/internal/frontend/desktop/windows
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
..
win32 [windows] Disable frameless decorations during fullscreen (#2288) 2023-01-11 15:22:48 +01:00
winc chore: fix some comments (#3399) 2024-04-17 18:42:53 +10:00
browser.go fix: fallback to hardcoded Edge/Chrome/Firefox Windows browser paths if user's default browser no longer exists (#3262) 2024-03-24 17:09:27 +11:00
clipboard.go Add common text clipboard support (#2228) 2023-01-05 16:41:07 +11:00
dialog_test.go fix: fix go test errors (#2169) 2022-12-06 06:45:06 +11:00
dialog.go [v2/Windows]Set default extension for save file dialog (#3205) 2024-01-17 22:35:15 +11:00
frontend.go Fix Drag & Drop JS runtime (#3516) 2024-06-10 15:15:28 +10:00
keys.go Fix up dev. Pull in go-webview and winc 2022-03-29 21:45:16 +11:00
menu.go Fix up dev. Pull in go-webview and winc 2022-03-29 21:45:16 +11:00
screen.go [v2] Introduce size and physical size of screens (#2856) 2023-08-26 10:11:01 +10:00
single_instance.go v2 [#3133] SingleInstanceData: Fill missing WD as is (#3154) 2024-01-04 05:26:24 +11:00
theme.go fix: fix go test errors (#2169) 2022-12-06 06:45:06 +11:00
window.go [chore] Use webview2 package (#2687) 2023-06-10 17:04:31 +10:00