* Use json.Marshal instead of strconv.Quote to correctly support unicode
* Add fix to changelog
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
* [runtime] Make it possible to restore old drag behaviour on windows with window.wails.flags.deferDragToMouseMove
* [runtime] Use deferDragToMouseMove as new default
This enhanced version should work well in all cases for Windows:
- No lag/delayed start of dragging
- Double-Clicks and Single-Click events still work in JavaScript on elements
* [docs] Add changelog
The old error handling fails on WebView2Runtimes > 110.0.1587.69 and
will show a "connection refused" page and reloads after a short time.
After the reload everything worked as expected again.
* update function notifyListeners in events.js
newEventListenerList will delete wrong listener if it call splice method in for-loop.
* Update events.js
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This removes the sometime lagging experience when
starting to drag on Windows. But it's still possible to use
double-click events for adding e.g. a WindowToggleMaximise.
This will show a message on the console
"+[CATransaction synchronize] called within transaction"
but there's seem no way to mitigate that. Still everything
works as expected.
* [assets] Improve error message if no `index.html` could be found in the assets
* [assetoptions] Valide options that at least one property has been set
* [assetserver] Move defaultHTML handling for 404 from assethandler to assetserver
* [assetserver] Add support for serving the index.html file when requesting a directory
* [docs] Update changelog
* [assetserver] Add support for HTTP Middlewares
* [dev] Disable frontend DevServer if no Assets has been defined and inform user
* [dev] Consistent WebSocket behaviour in dev and prod mode for assets handler and middleware
In prod mode we can't support WebSockets so make sure the
assets handler and middleware never see WebSockets in dev mode.
* [templates] Migrate to new AssetServer option
* [docs] Add assetserver.Options to the reference
* Add single listener deregistration
* Return function to stop listening, updates types
* Add missing returns, improve documentation
* Duplicate interface in go
* Define eventName
* Use lo instead for filtering
* Move logger to Interface. Add sample test.
* Add vite test for events
* Add js test workflow
* Add corresponding go method to remove all events
* Update documentation
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
* [webview2loader] Add full featured go implementation
The new go loader can be activated with the exp_gowebview2loader build tag.
* [build] Add information for using the new webvie2loader
Webview2 on Windows returns a potential whitespace when defining the
style like this `style="--wails-draggable: drag"`. Whereas Darwin already
trims the value and returns "drag" and not " drag".
* #1057 expose ZoomFactor get/set and add the respective windows only options
* Remove debug log, use IsZoomControlEnabled as well
* use math.float to/from 64bits functions instead
* Add new windows options ZoomFactor and IsZoomControlEnabled doc
* Grammar
* Update options.mdx
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
* Add WindowExecJS
* [devserver] Embed the base frontend into the DevServer struct
* Update docs
Co-authored-by: stffabi <stffabi@users.noreply.github.com>