Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 608dc11

Browse files
author
nturgut
committed
addding more comments
1 parent bb80a27 commit 608dc11

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/web_ui/lib/src/engine/semantics/semantics.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,9 +899,13 @@ class SemanticsObject {
899899
..transformOrigin = '0 0 0'
900900
..transform = matrix4ToCssTransform(effectiveTransform);
901901
} else {
902-
// Mobile screen readers observed have errors reading the semantics
903-
// borders when css `transform` properties are used.
902+
// Mobile screen readers observed to have errors while calculating the
903+
// semantics focus borders if css `transform` properties are used.
904904
// See: https://github.com/flutter/flutter/issues/68225
905+
// Therefore we are calculating a bounding rectangle for the
906+
// effective transform and use that rectangle to set TLWH css style
907+
// properties.
908+
// Note: Identity matrix is not using this code path.
905909
final ui.Rect rect =
906910
computeBoundingRectangleFromMatrix(effectiveTransform, _rect!);
907911
element.style

0 commit comments

Comments
 (0)