-
Notifications
You must be signed in to change notification settings - Fork 29.4k
Open
Labels
in triagePresently being triaged by the triage teamPresently being triaged by the triage team
Description
Steps to reproduce
Use GestureDetector on MacOS
GestureDetector(
onSecondaryTapUp: (d) {
print("action: onSecondaryTapUp");
},
onTapDown: (d) {
print("action: onTapDown");
},
onTapUp: (d) {
print("action: onTapUp");
},
onTap: () {
print("action: onTap");
},
onLongPressEnd: (d) {
print("action: onLongPressEnd");
},
child: ...,
)
Tap down using the Trackpad but without "Pressing" down fully. Like tapping on a Touchscreen.
console shows: action: onTapDown
nothing else.
Now move mouse
console shows: action: onLongPressEnd
Expected results
Doing the same on Flutter 3.32 we get following console output:
action: onTapDown
action: onTapUp
action: onTap
Actual results
action: onTapDown
action: onLongPressEnd
onLongPressEnd
is only triggered after mouse is moved
Code sample
Code sample
GestureDetector(
onSecondaryTapUp: (d) {
print("action: onSecondaryTapUp");
},
onTapDown: (d) {
print("action: onTapDown");
},
onTapUp: (d) {
print("action: onTapUp");
},
onTap: () {
print("action: onTap");
},
onLongPressEnd: (d) {
print("action: onLongPressEnd");
},
child: ...,
)
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.35.6, on macOS 26.0.1 25A362 darwin-arm64, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2025.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2025.2)
[✓] VS Code (version 1.105.0)
[✓] Connected device (3 available)
! Error: Browsing on the local area network for MPad. Ensure the device is unlocked and attached with a cable or associated with
the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
! Error: Browsing on the local area network for mPhone. Ensure the device is unlocked and attached with a cable or associated
with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
• No issues found!
Metadata
Metadata
Assignees
Labels
in triagePresently being triaged by the triage teamPresently being triaged by the triage team