Remove callback when participant loses arena

pull/94/head
Till Friebe 4 years ago
parent a268c0c705
commit 6afb8ce1bf
  1. 23
      lib/widgets/text_selection.dart

@ -670,10 +670,10 @@ class _EditorTextSelectionGestureDetectorState
final Map<Type, GestureRecognizerFactory> gestures = final Map<Type, GestureRecognizerFactory> gestures =
<Type, GestureRecognizerFactory>{}; <Type, GestureRecognizerFactory>{};
gestures[_TransparentTapGestureRecognizer] = gestures[TapGestureRecognizer] =
GestureRecognizerFactoryWithHandlers<_TransparentTapGestureRecognizer>( GestureRecognizerFactoryWithHandlers<TapGestureRecognizer>(
() => _TransparentTapGestureRecognizer(debugOwner: this), () => TapGestureRecognizer(debugOwner: this),
(_TransparentTapGestureRecognizer instance) { (TapGestureRecognizer instance) {
instance instance
..onTapDown = _handleTapDown ..onTapDown = _handleTapDown
..onTapUp = _handleTapUp ..onTapUp = _handleTapUp
@ -735,18 +735,3 @@ class _EditorTextSelectionGestureDetectorState
); );
} }
} }
class _TransparentTapGestureRecognizer extends TapGestureRecognizer {
_TransparentTapGestureRecognizer({
Object debugOwner,
}) : super(debugOwner: debugOwner);
@override
void rejectGesture(int pointer) {
if (state == GestureRecognizerState.ready) {
acceptGesture(pointer);
} else {
super.rejectGesture(pointer);
}
}
}

Loading…
Cancel
Save