Skip to content

Commit a7722c3

Browse files
author
Renzo Olivares
committed
secondaryButton should not drag
1 parent c77c604 commit a7722c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/flutter/lib/src/gestures/selection_recognizers.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@ class TapAndDragGestureRecognizer extends OneSequenceGestureRecognizer with _Con
268268
}
269269
} else if (event is PointerMoveEvent) {
270270
print('handle PointerMoveEvent $event');
271+
if (_initialButtons == kSecondaryButton) {
272+
resolve(GestureDisposition.rejected);
273+
return;
274+
}
271275

272276
if (_state == _DragState.accepted) {
273277
print('PointerMoveEvent while drag is accepted');

0 commit comments

Comments
 (0)