Skip to content

Conversation

@8symbols
Copy link
Contributor

@8symbols 8symbols commented Feb 8, 2026

Description

Tap that starts inside the component and ends outside of it results in the usual onTapUp call in the dispatcher, but this call does not reach the component in which it started, because only the components in which this tap ended are used.

These changes cancel all taps that were not successfully completed.

I guess the changes also affect the behavior of continuePropagation: if someone previously set it to false in onTapUp, other components wouldn't receive either a TapUpEvent or a TapCancelEvent. Now they will receive a TapCancelEvent. If the original behavior was truly necessary, I think it's better to separate it out into a new finish state, something like "ignored TapUp".

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • [-] I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • [-] I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

Fixes #3804

Copy link
Member

@spydon spydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one small comment

@spydon
Copy link
Member

spydon commented Feb 8, 2026

Thanks for your contribution

@spydon spydon merged commit ebcdb81 into flame-engine:main Feb 8, 2026
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tap that ends outside of component does not result in a TapCancelEvent

2 participants