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

Conversation

@mdebbar
Copy link
Contributor

@mdebbar mdebbar commented Dec 4, 2024

These changes are mainly things I missed in #56719

Fixes flutter/flutter#159804

@mdebbar mdebbar added the platform-web Code specifically for the web engine label Dec 4, 2024
@mdebbar mdebbar requested a review from ditman December 4, 2024 22:01
Copy link
Member

@ditman ditman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it! Thanks for fixing the computeOffset!

final EditableTextGeometry? inputGeometry = textEditing.strategy.geometry;
if (inputGeometry != null) {
return _computeOffsetForInputs(event, inputGeometry);
return _computeOffsetForInputs(event, eventTarget, inputGeometry);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the docs:

This needs an eventTarget, because the event.target (which is what this would really need to use) gets lost when the event comes from a "coalesced" event (see: flutter/flutter#155987).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll update the docs. The problem I'm seeing in Chrome is actually quite interesting:

The main event has the correct target (input). But the coalesced events have a dummy div as their targets. When I set a breakpoint in Chrome and try to inspect that div, Chrome freezes!

I filed a Chrome bug for it: https://g-issues.chromium.org/issues/382473107

@mdebbar mdebbar added the autosubmit Merge PR when tree becomes green via auto submit App label Dec 5, 2024
@auto-submit auto-submit bot merged commit c4662f2 into flutter:main Dec 5, 2024
31 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 5, 2024
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Dec 5, 2024
…159858) flutter/engine@b4f52b2...3a8204a 2024-12-05 30870216+gaaclarke@users.noreply.github.com Moved gles pipelines to untracked handles. (flutter/engine#56955) 2024-12-05 skia-flutter-autoroll@skia.org Roll Dart SDK from a2a9428e761f to 56bbedca60f9 (7 revisions) (flutter/engine#56980) 2024-12-05 mdebbar@google.com [web] Use `eventTarget` when computing pointer offset (flutter/engine#56949) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC bdero@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@mdebbar mdebbar deleted the event_target branch December 9, 2024 17:16
@mdebbar mdebbar added the cp: stable cherry pick to the stable release candidate branch label Dec 17, 2024
flutteractionsbot pushed a commit to flutteractionsbot/engine that referenced this pull request Dec 17, 2024
nick9822 pushed a commit to nick9822/flutter that referenced this pull request Dec 18, 2024
@lishaduck lishaduck mentioned this pull request Jan 7, 2025
6 tasks
lishaduck added a commit to PHS-TSA/nexus that referenced this pull request Jan 8, 2025
lishaduck added a commit to PHS-TSA/nexus that referenced this pull request Jan 8, 2025
lishaduck added a commit to PHS-TSA/nexus that referenced this pull request Jan 8, 2025
lishaduck added a commit to PHS-TSA/nexus that referenced this pull request Jan 8, 2025
lishaduck added a commit to PHS-TSA/nexus that referenced this pull request Jan 9, 2025
lishaduck added a commit to PHS-TSA/nexus that referenced this pull request Jan 9, 2025
github-merge-queue bot pushed a commit to PHS-TSA/nexus that referenced this pull request Jan 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App cp: stable cherry pick to the stable release candidate branch platform-web Code specifically for the web engine

2 participants