Implementing two-finger Forward/Back gesture in HTMLViewer

I’m trying to implement the two-finger back/forward navigation that MacOS uses in web browsers in my own app’s in-app browser. It’s a cross-platform app so I’d like it to work on both Mac and Windows but Mac is the priority since most of the Macbook users will be used to that gesture on their trackpads already.

Unfortunately the DesktopHTMLViewer doesn’t seem to have a mousewheel event, and since I don’t control the pages the user is viewing I can’t do it in Javascript.

Does anyone know a way to accomplish this?

You might be able to use HTMLViewer.ExecuteJavaScript to inject some custom code which handles the events into the web page after it has loaded.

An alternative might be the MBS plugins.