From c35ca1b920bcceaf06a6d5d4758460b423305ab8 Mon Sep 17 00:00:00 2001 From: not-elm Date: Thu, 19 Feb 2026 23:11:14 +0900 Subject: [PATCH] feat: add WebviewSurface component for alpha hit-testing Co-Authored-By: Claude Opus 4.6 --- src/common/components.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/common/components.rs b/src/common/components.rs index 9882306..d24a84d 100644 --- a/src/common/components.rs +++ b/src/common/components.rs @@ -116,3 +116,10 @@ where Self(scripts.into_iter().map(Into::into).collect()) } } + +/// Holds the webview surface texture handle for alpha hit-testing. +/// +/// This component is automatically inserted and updated by the render systems. +/// It provides material-type-agnostic access to the webview texture. +#[derive(Component, Debug, Clone)] +pub(crate) struct WebviewSurface(pub(crate) Handle);