From 6ec9c79312d8f5a2e75bee810441d3eafe46979b Mon Sep 17 00:00:00 2001 From: xuyang Date: Tue, 20 Aug 2024 11:07:34 +0800 Subject: [PATCH] [chore]: add code commentary --- lib/src/editor/widgets/delegate.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/editor/widgets/delegate.dart b/lib/src/editor/widgets/delegate.dart index 70543529..a2f81a9d 100644 --- a/lib/src/editor/widgets/delegate.dart +++ b/lib/src/editor/widgets/delegate.dart @@ -647,6 +647,10 @@ class EditorTextSelectionGestureDetectorBuilder { @protected void onDragSelectionStart(TapDragStartDetails details) { if (delegate.selectionEnabled == false) return; + // underline show open on ios and android, + // when has isCollapsed, show not reposonse to tapdarg gesture + // so that will not change texteditingvalue, + // and same issue to TextField, tap selection area, will lost selection, // if (editor?.textEditingValue.selection.isCollapsed == false) return; final kind = details.kind;