Skip to content

Commit

Permalink
UserInteractionWidget skip render objects that require layout/paint
Browse files Browse the repository at this point in the history
It is not possible to get the `renderObject.painBounds` for renderObjects that require a layout or re-paint.
  • Loading branch information
kuhnroyal committed Aug 28, 2024
1 parent 039058a commit 48411ef
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,11 @@ class _SentryUserInteractionWidgetState
if (renderObject == null) {
return;
}

if (renderObject.debugNeedsLayout || renderObject.debugNeedsPaint) {
return;
}

var hitFound = true;
if (renderObject is RenderPointerListener) {
final hitResult = BoxHitTestResult();
Expand Down

0 comments on commit 48411ef

Please sign in to comment.