Skip to content

Can transparent page support hit testing? #1351

Closed
@panxn

Description

@panxn

I hope to use transparent(no background) webview2 page as UI layer over d3d layer, just like head up display in video game, mouse events are handled by UI layer if there is html element (e.g. button), otherwise passed to d3d layer.

I'm using function ICoreWebView2CompositionController::SendMouseInput to forward mouse events, but no way to do hit-testing, so I wonder if webview2 can provide a function or any other approach.

There is a similar request #1004, no progress. I'm afraid it's not easy, it's also very helpful if you can tell me it's impossible, thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions