From 12fb345195d2b504f487e72553b3ca58158f93d2 Mon Sep 17 00:00:00 2001 From: xuyang Date: Tue, 20 Aug 2024 10:19:52 +0800 Subject: [PATCH] [chore]: remove code --- lib/src/editor/widgets/delegate.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/editor/widgets/delegate.dart b/lib/src/editor/widgets/delegate.dart index dada7430..70543529 100644 --- a/lib/src/editor/widgets/delegate.dart +++ b/lib/src/editor/widgets/delegate.dart @@ -647,7 +647,7 @@ class EditorTextSelectionGestureDetectorBuilder { @protected void onDragSelectionStart(TapDragStartDetails details) { if (delegate.selectionEnabled == false) return; - if (editor?.textEditingValue.selection.isCollapsed == false) return; + // if (editor?.textEditingValue.selection.isCollapsed == false) return; final kind = details.kind; shouldShowSelectionToolbar = kind == null || @@ -755,7 +755,7 @@ class EditorTextSelectionGestureDetectorBuilder { @protected void onDragSelectionUpdate(TapDragUpdateDetails updateDetails) { if (delegate.selectionEnabled == false) return; - if (editor?.textEditingValue.selection.isCollapsed == false) return; + // if (editor?.textEditingValue.selection.isCollapsed == false) return; if (!_isShiftPressed) { // Adjust the drag start offset for possible viewport offset changes. final editableOffset = @@ -965,7 +965,7 @@ class EditorTextSelectionGestureDetectorBuilder { /// which triggers this callback. @protected void onDragSelectionEnd(TapDragEndDetails details) { - if (editor?.textEditingValue.selection.isCollapsed == false) return; + // if (editor?.textEditingValue.selection.isCollapsed == false) return; renderEditor!.handleDragEnd(details); if (isDesktop(supportWeb: true) && delegate.selectionEnabled &&