-
Notifications
You must be signed in to change notification settings - Fork 29.7k
_TapStatusTrackerMixin should wait until the next PointerDownEvent before resetting its state when the tap timer has elapsed
#129312
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
_TapStatusTrackerMixin should wait until the next PointerDownEvent before resetting its state when the tap timer has elapsed
#129312
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
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Maybe you can get rid of the boolean you added though, I left a comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you look at the timer instead to get rid of the boolean? Something like this:
if (_consecutiveTapTimer != null && !_consecutiveTapTimer.isActive) {There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That works!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a constant to use here instead of 300? kDoubleTapTimeout?
7b4a158 to
8808b55
Compare
|
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. |
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…` 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
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
…ownEvent` before resetting its state when the tap timer has elapsed (flutter/flutter#129312)
_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
///).