You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I'm trying to implement into wry (and by extension, tauri) the ability to change the WebView2 scrollbar style to the Fluent Overlay style on Windows. I've hit a bit of a snag:
It would appear, from testing, that this crate doesn't define implementations of COM interfaces ICoreWebView2EnvironmentOptions4 through ICoreWebView2EnvironmentOptions8 on CoreWebView2EnvironmentOptions, which means I cannot cast to the necessary interface (8) in order to write the new version. Attempting to do the following returns Err():
cannot set scrollbar style:
Error { code: HRESULT(0x80004002), message: "No such interface supported" }
Would it be possible to get these added? I would do this myself in a pull request, but I do not understand Windows COM interfaces enough to be sure I could do it without getting something horribly wrong.
The text was updated successfully, but these errors were encountered:
Thanks! I added implementations for those interfaces, and a unit test like in callback.rs to catch when new ICoreWebview2EnvironmentOptions... interfaces are added to the SDK. I'll publish the updates to crates.io momentarily.
N.B. ICoreWebview2EnvironmentOptions4 was already implemented, but there's a special case where I needed to replace it with IFixedEnvironmentOptions4.
Hello. I'm trying to implement into
wry
(and by extension,tauri
) the ability to change the WebView2 scrollbar style to the Fluent Overlay style on Windows. I've hit a bit of a snag:It would appear, from testing, that this crate doesn't define implementations of COM interfaces
ICoreWebView2EnvironmentOptions4
throughICoreWebView2EnvironmentOptions8
onCoreWebView2EnvironmentOptions
, which means I cannot cast to the necessary interface (8) in order to write the new version. Attempting to do the following returnsErr()
:OUTPUT:
Would it be possible to get these added? I would do this myself in a pull request, but I do not understand Windows COM interfaces enough to be sure I could do it without getting something horribly wrong.
The text was updated successfully, but these errors were encountered: