如何点击可可网页视图的透明部分

发布于 2025-01-01 09:50:01 字数 159 浏览 1 评论 0原文

好的,我有一个 Web 视图,其中包含来自 Facebook.com 的聊天栏 div。 网络视图本身比栏更大/更高,因为显然它需要在打开聊天框时使用。 当聊天框未打开时,网络视图的该区域是透明的。 我需要网络视图的透明区域来忽略鼠标事件并将它们发送到后面的任何内容。

我该怎么办?

Okay so I have a web view that holds the chat bar div from Facebook.com.
The web view itself is larger/taller than the bar because obviously it needs to be for when a chat box is opened.
When a chat box isn't open though, that area of the web view is transparent.
I need the transparent areas of the web view to ignore mouse events and send them to whatever is behind.

How should I go about this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

缱倦旧时光 2025-01-08 09:50:01

将 WebView 子类化并实现您自己的 hitTest: 方法。

Subclass the WebView and implement your own hitTest: method.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文