如何点击可可网页视图的透明部分
好的,我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将 WebView 子类化并实现您自己的
hitTest:
方法。Subclass the WebView and implement your own
hitTest:
method.