Skip to content

Commit f6a2d29

Browse files
committed
Fix failed assertion when tap/scrolling on any link
1 parent b785705 commit f6a2d29

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

lib/src/utils.dart

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -49,38 +49,9 @@ class Context<T> {
4949
// This class is a workaround so that both an image
5050
// and a link can detect taps at the same time.
5151
class MultipleTapGestureRecognizer extends TapGestureRecognizer {
52-
bool _ready = false;
53-
54-
@override
55-
void addAllowedPointer(PointerDownEvent event) {
56-
if (state == GestureRecognizerState.ready) {
57-
_ready = true;
58-
}
59-
super.addAllowedPointer(event);
60-
}
61-
62-
@override
63-
void handlePrimaryPointer(PointerEvent event) {
64-
if (event is PointerCancelEvent) {
65-
_ready = false;
66-
}
67-
super.handlePrimaryPointer(event);
68-
}
69-
70-
@override
71-
void resolve(GestureDisposition disposition) {
72-
if (_ready && disposition == GestureDisposition.rejected) {
73-
_ready = false;
74-
}
75-
super.resolve(disposition);
76-
}
77-
7852
@override
7953
void rejectGesture(int pointer) {
80-
if (_ready) {
81-
acceptGesture(pointer);
82-
_ready = false;
83-
}
54+
acceptGesture(pointer);
8455
}
8556
}
8657

0 commit comments

Comments
 (0)