diff --git a/lib/src/widgets/text_selection.dart b/lib/src/widgets/text_selection.dart index 833a21e9..16374789 100644 --- a/lib/src/widgets/text_selection.dart +++ b/lib/src/widgets/text_selection.dart @@ -732,7 +732,8 @@ class _EditorTextSelectionGestureDetectorState gestures[LongPressGestureRecognizer] = GestureRecognizerFactoryWithHandlers( () => LongPressGestureRecognizer( - debugOwner: this, kind: PointerDeviceKind.touch), + debugOwner: this, + supportedDevices: {PointerDeviceKind.touch}), (instance) { instance ..onLongPressStart = _handleLongPressStart @@ -748,7 +749,8 @@ class _EditorTextSelectionGestureDetectorState gestures[HorizontalDragGestureRecognizer] = GestureRecognizerFactoryWithHandlers( () => HorizontalDragGestureRecognizer( - debugOwner: this, kind: PointerDeviceKind.mouse), + debugOwner: this, + supportedDevices: {PointerDeviceKind.mouse}), (instance) { instance ..dragStartBehavior = DragStartBehavior.down