提交 0bd1f93c 编写于 作者: B benb365 提交者: Gitee

Fix the error of finding top-view when button is transparent

上级 6cfdf8c5
......@@ -583,7 +583,7 @@ UIView* RootView::GetTopUIView(const Rect& rect)
while (stackCount >= 0) {
while (currentView != nullptr) {
if (currentView->GetOrigRect().IsContains(rect) && currentView->IsVisible()) {
if (currentView->GetStyleConst().bgOpa_ == OPA_OPAQUE && currentView->OnPreDraw(copyRect) &&
if (currentView->GetStyle(STYLE_BACKGROUND_OPA) == OPA_OPAQUE && currentView->OnPreDraw(copyRect) &&
currentView->GetOpaScale() == OPA_OPAQUE) {
topView = currentView;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册