Skip to content

PhysicalX / PhysicalY are incorrect in web engine when clicking on top of flt-text-editing-host  #125948

@jezell

Description

@jezell

Is there an existing issue for this?

Use case

  1. Add a widget to the screen that has text editing. Position it somewhere so that the left and top edges are in the middle of the screen.
  2. Set a breakpoint in PointerEventConverter on case ui.PointerChange.down
  3. Without the textbox selected, click inside the text control and note the physicalX
  4. Click in the same spot and note that the physicalX is much different.

The engine seems to assume that the flutter view was the source of all events, so when it hits flt-text-editing-host it delivers incorrect pointer event data.

Proposal

Perhaps the web engine should make sure that the event was actually on the canvas host element it thinks it was on, and if not, convert the coordinates when converting the DomEvent to PointerData.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterengineflutter/engine related. See also e: labels.platform-webWeb applications specificallyr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions