wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
25.44k stars 1.23k forks source link

WKWebView instance property allowsBackForwardNavigationGestures #1857

Open cheriot opened 2 years ago

cheriot commented 2 years ago

Is your feature request related to a problem? Please describe.

Hi, I’m building a wails app that has a few pages and instinctively try to use Mac’s two finger swipe gesture to go back/forward. This gesture navigation does not work on the default WKWebView.

Describe the solution you'd like

It looks like there's a property for this on WKWebView instances: allowsBackForwardNavigationGestures. https://developer.apple.com/documentation/webkit/wkwebview/1414995-allowsbackforwardnavigationgestu

Of course, a general purpose way to set WKWebView properties would also work :)

Describe alternatives you've considered

Doing something like this in javascript is possible, but even then it would feel "off" because the native feature has some subtleties.

Additional context

No response

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.