Skip to content

Commit ff08c2a

Browse files
bernaferrariesouthren
authored andcommitted
Add allowedButtonsFilter to prevent Draggable from appearing with secondary click. (flutter#111852)
* DragTarget part 1. [WIP] Change GestureRecognizer. Sorry. [WIP] Move from GestureRecognizer to MultiDragGestureRecognizer. Make it a `Set<int>?` Get bitwise operations working. Fix test. Rename to allowedInputPointers. Convert into a builder. Improve code with default funciton. Refactor everything again. Rename to buttonEventFilter. Use static function. Fix analyzer. Fix private reference. Use // in private method. * Fix Renzo request. * Add `allowedButtonsFilter` everywhere. * Refactor monoDrag for multi pointer support. * Fix tests? * Change default to always true. * Fix PR comments. * Completely refactor long press. * Add forgotten class. * Revert "Completely refactor long press." This reverts commit 5038e8603e250e8c928b0f1754fb794b7b75738b. * Add default value to LongPress * Refactor doubleTap. * Relax double tap. * Write comment in LongPress. * Use template.
1 parent 59120dc commit ff08c2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,7 @@ class TapAndDragGestureRecognizer extends OneSequenceGestureRecognizer with _Tap
702702
super.debugOwner,
703703
super.kind,
704704
super.supportedDevices,
705+
super.allowedButtonsFilter,
705706
}) : _deadline = kPressTimeout,
706707
dragStartBehavior = DragStartBehavior.start,
707708
slopTolerance = kTouchSlop;

0 commit comments

Comments
 (0)