_TapStatusTrackerMixin should wait until the next PointerDownEvent before resetting its state when the tap timer has elapsed#129312
Merged
auto-submit[bot] merged 10 commits intoflutter:masterfrom Jun 23, 2023
Conversation
BaseTapAndDragGestureRecognizer should track its down/up events locally
b4be58d to
76ea108
Compare
BaseTapAndDragGestureRecognizer should track its down/up events locally_TapStatusTrackerMixin should wait until the next PointerDownEvent before resetting its state when timer has elapsed
_TapStatusTrackerMixin should wait until the next PointerDownEvent before resetting its state when timer has elapsed_TapStatusTrackerMixin should wait until the next PointerDownEvent before resetting its state when the tap timer has elapsed
ca1a429 to
0819f0f
Compare
justinmc
approved these changes
Jun 22, 2023
Contributor
justinmc
left a comment
There was a problem hiding this comment.
LGTM 👍
Maybe you can get rid of the boolean you added though, I left a comment.
Contributor
There was a problem hiding this comment.
Could you look at the timer instead to get rid of the boolean? Something like this:
if (_consecutiveTapTimer != null && !_consecutiveTapTimer.isActive) {
Contributor
There was a problem hiding this comment.
Is there a constant to use here instead of 300? kDoubleTapTimeout?
7b4a158 to
8808b55
Compare
Contributor
|
auto label is removed for flutter/flutter, pr: 129312, due to - The status or check suite Linux web_canvaskit_tests_3 has failed. Please fix the issues identified (or deflake) before re-applying this label. |
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jun 23, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jun 23, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jun 24, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jun 24, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jun 24, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jun 25, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jun 25, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jun 25, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jun 26, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jun 26, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jun 26, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jun 26, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Jun 26, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
Renzo-Olivares
added a commit
to Renzo-Olivares/flutter
that referenced
this pull request
Jun 26, 2023
…` before resetting its state when the tap timer has elapsed (flutter#129312) `_TapStatusTrackerMixin` used by `BaseTapAndDragGestureRecognizer` should wait until the next tap down before resetting its state when the `_consecutiveTapTimer` times out. This is because `BaseTapAndDragGestureRecognizer` may not have fired its tap down/tap up event before the state has been reset preventing it from firing the tap down/tap up callbacks at all because `currentDown` and `currentUp` are reset to `null`. Fixes flutter#129161
8 tasks
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Aug 16, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Aug 17, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Aug 17, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Aug 17, 2023
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
_TapStatusTrackerMixinused byBaseTapAndDragGestureRecognizershould wait until the next tap down before resetting its state when the_consecutiveTapTimertimes out. This is becauseBaseTapAndDragGestureRecognizermay not have fired its tap down/tap up event before the state has been reset preventing it from firing the tap down/tap up callbacks at all becausecurrentDownandcurrentUpare reset tonull.Fixes #129161
Pre-launch Checklist
///).