!48149 回退 'Pull Request !46496 : 修复bindSheet场景下findChildByIndex找不准子节点的bug'

Merge pull request !48149 from tomkl123/revert-merge-46496-master
This commit is contained in:
openharmony_ci 2024-11-11 14:13:21 +00:00 committed by Gitee
commit 8ee4f68935
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3699,7 +3699,7 @@ RefPtr<FrameNode> FrameNode::FindChildByPosition(float x, float y)
}
auto globalFrameRect = geometryNode->GetFrameRect();
globalFrameRect.SetOffset(child->GetPositionToWindowWithTransform());
globalFrameRect.SetOffset(child->GetOffsetRelativeToWindow());
if (globalFrameRect.IsInRegion(PointF(x, y))) {
hitFrameNodes.insert(std::make_pair(child->GetDepth(), child));