Skip to content

MouseRegion has inconsistent behavior using stylus and touch #156223

@beeshi

Description

@beeshi

Copied from internal bug b/371544489

[Summary]

The MouseRegion widget triggers onEnter when a stylus touches down in it, but doesn't trigger onExit when the stylus goes elsewhere on the page. Neither onEnter nor onExit gets triggered when you use a finger instead of a stylus.

[Reproduction project]

The example code on this page: https://api.flutter.dev/flutter/widgets/MouseRegion-class.html
I'm seeing this behavior on a touchscreen chromebook and on ipad, haven't tried on other devices that support touch

[Reason for prioritization]

Causing issues in prod when users use a stylus to draw.

Metadata

Metadata

Assignees

Labels

P0Critical issues such as a build break or regressioncustomer: chalk (g3)f: gesturesflutter/packages/flutter/gestures repository.found in release: 3.24Found to occur in 3.24found in release: 3.26Found to occur in 3.26frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions