Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add DoubleTapCallbacks that receives double-tap events. #2327

Merged
merged 21 commits into from Feb 10, 2023

Conversation

Hwan-seok
Copy link
Contributor

Description

As-is

As mentioned in #2321, the user needs to propagate double-tap events to the component tree using DoubleTapDetector & propagateToChildren until now.

To-be

  • Any components that are mixed into the DoubleTapCallbacks receive double-tap-related events.
    Same as DragCallbacks, there is no need to add mixin to the game like HasDoubleTapCallbaks as before.

Discussion

  • DoubleTapCallbacks can replace DoubleTapDetector because it is a mixin that can be added to the FlameGame too. Should DoubleTapDetector be marked as deprecated?

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

Closes #2321

@Hwan-seok Hwan-seok marked this pull request as draft February 6, 2023 12:52
@Hwan-seok Hwan-seok marked this pull request as ready for review February 6, 2023 14:20
@spydon spydon requested review from st-pasha and a team February 7, 2023 13:30
@spydon spydon added this pull request to the merge queue Feb 9, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 9, 2023
@spydon spydon added this pull request to the merge queue Feb 9, 2023
@spydon spydon removed this pull request from the merge queue due to the queue being cleared Feb 9, 2023
Copy link
Member

@luanpotter luanpotter left a comment

Choose a reason for hiding this comment

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

LGTM

@spydon spydon merged commit b5f79d1 into flame-engine:main Feb 10, 2023
@Hwan-seok Hwan-seok deleted the hwanseok.double-tap branch February 10, 2023 18:29
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.

Add DoubleTapCallbacks
4 participants