Skip to content

Conversation

@bernaferrari
Copy link
Contributor

@bernaferrari bernaferrari commented Mar 8, 2023

I was unaware ImmediateMultiDragGestureRecognizer() != ImmediateMultiDragGestureRecognizer(allowedButtonsFilter : null). This fixes that. Thanks @stuartmorgan for the help. Without you this wouldn't be possible.

This should have the "side effect" of making Draggable only work with primary click. This wasn't happening because Draggable applied a null allowedButtonsFilter and then GestureRecognizer just returned "true". Now it should work as intended on #111852 (but that never worked, unfortunately).

cc @Renzo-Olivares.
cc @moffatman.

@flutter-dashboard flutter-dashboard bot added f: gestures flutter/packages/flutter/gestures repository. framework flutter/packages/flutter repository. See also f: labels. labels Mar 8, 2023
@bernaferrari bernaferrari force-pushed the Fix-Draggable branch 2 times, most recently from daed5ab to 976dbb0 Compare March 8, 2023 20:20
@bernaferrari bernaferrari marked this pull request as ready for review March 8, 2023 20:20
@bernaferrari bernaferrari changed the title Fix allowedButtonsFilter nullable parameter. Fix allowedButtonsFilter not being passed when null. Mar 8, 2023
@bernaferrari bernaferrari changed the title Fix allowedButtonsFilter not being passed when null. Fix allowedButtonsFilter not working as intended when null. Mar 8, 2023
Copy link
Contributor

@Renzo-Olivares Renzo-Olivares left a comment

Choose a reason for hiding this comment

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

LGTM thanks for fixing that!

@tgucio tgucio merged commit a5061bf into flutter:master Mar 8, 2023
@bernaferrari bernaferrari deleted the Fix-Draggable branch March 9, 2023 01:04
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 9, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 10, 2023
hannah-hyj pushed a commit to hannah-hyj/flutter that referenced this pull request Mar 11, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 11, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 12, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: gestures flutter/packages/flutter/gestures repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants