Repository navigation
Closed
flutter-team-archive/engine
#56075Labels
P0Critical issues such as a build break or regressionCritical issues such as a build break or regressioncustomer: chalk (g3)f: gesturesflutter/packages/flutter/gestures repository.flutter/packages/flutter/gestures repository.found in release: 3.24Found to occur in 3.24Found to occur in 3.24found in release: 3.26Found to occur in 3.26Found to occur in 3.26frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamOwned by Framework team
Description
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 regressionCritical issues such as a build break or regressioncustomer: chalk (g3)f: gesturesflutter/packages/flutter/gestures repository.flutter/packages/flutter/gestures repository.found in release: 3.24Found to occur in 3.24Found to occur in 3.24found in release: 3.26Found to occur in 3.26Found to occur in 3.26frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamOwned by Framework team
Activity
TahaTesser commentedon Oct 4, 2024
There was a MouseRegion related issue on Android related to stylus, see #154842 (comment)
huycozy commentedon Oct 7, 2024
Checking this using iPad with Apple Pencil, I see the stylus is working as expected, onEnter and onExit are both triggered (please watch the demo video). I also tested with a Bluetooth mouse and see the same expected result here.
Demo video (iPad Air 5, iPadOS 17.5.1)
RPReplay_Final1728289066.mp4
RPReplay_Final1728289604.mp4
However, onEnter and onExit are not triggered with touch gesture by finger as reported.
Checked on Flutter versions:
beeshi commentedon Oct 7, 2024
iPad pro, iPadOS 17.4.1
75000268028__1EA12ED1-CAE6-41DF-859D-6F164DA30109.MOV
xster commentedon Oct 7, 2024
Google triage: validating that it's impacting users in production
xster commentedon Oct 7, 2024
@beeshi has this been a regression or it's just a newly discovered test case that doesn't work?
beeshi commentedon Oct 7, 2024
We’re not entirely sure since I think we didn’t test with a stylus before, but I’d guess its been this way for a while
chunhtai commentedon Oct 8, 2024
not entirely sure what is going on, maybe the stylus doesn't follow the pointer event lifecycle. Should stylus be included in mouse event for the first place?
dkwingsmt commentedon Oct 23, 2024
Update: I'm investigating it. I can reproduce it on my iPad. It occurs only on Web with a stylus.
Multiple touches of a stylus should be considered from the same device (
github-actions commentedon Nov 18, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Multiple touches of a stylus should be considered from the same device (