This repository has been archived by the owner on Feb 25, 2025. It is now read-only.
3.10.2
This cherry-pick backports flutter/engine#41870 to Flutter 3.10. * git cherry-pick 4f3f7bb (+ conflict fixes) Original commit message below: [web] Fix event offset for transformed widgets (and text input nodes). (#41870) Text inputs have moved outside of the shadowDOM and are now using the pointer event offset calculation algorithm that platform views use. However, transforms (e.g. scaling) applied to the input element aren't currently accounted for, which leads to incorrect offsets and clicks being registered inaccurately. This PR attempts to transform those offset coordinates using the transform matrix data that is included in the geometry information sent over to `text_editing.dart` from the framework. * Fixes https://github.com/flutter/flutter/issues/125948 (text editing) * Fixes https://github.com/flutter/flutter/issues/126661 (platform view scaling) * Fixes https://github.com/flutter/flutter/issues/126754 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style