Skip to content

[web] Cleanup: TouchEvents, MouseEvents in Pointer Binding. #116141

@ditman

Description

@ditman

The current web engine sources Pointer (mouse/tap) events from different APIs, depending on browser support:

  • PointerEvent (caniuse -> preferred API)
  • TouchEvent (caniuse -> fallback for Safari Mobile <13)
  • MouseEvent (caniuse -> fallback for Safari Desktop <13)

The feature detection is also very trivial:

The latest release of Safari 12 (12.1.2) happened on:

Proposal

Let's remove TouchEvents and MouseEvents as sources of PointerEvents from the pointer_binding.dart file above, to simplify it a lot, and maybe reduce a little bit the engine size along the way (this is minor).

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.engineflutter/engine related. See also e: labels.platform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions