From 89a0a5599e40e15bcfaf6918552ad073860a6e72 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Sun, 31 Jul 2022 16:01:46 +0800 Subject: [PATCH] fix: cursor cannot be selected in same position. --- .../flowy_editor/lib/render/selection/cursor_widget.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/app_flowy/packages/flowy_editor/lib/render/selection/cursor_widget.dart b/frontend/app_flowy/packages/flowy_editor/lib/render/selection/cursor_widget.dart index 6a27eed855..19da4b55f4 100644 --- a/frontend/app_flowy/packages/flowy_editor/lib/render/selection/cursor_widget.dart +++ b/frontend/app_flowy/packages/flowy_editor/lib/render/selection/cursor_widget.dart @@ -64,8 +64,12 @@ class CursorWidgetState extends State { link: widget.layerLink, offset: widget.rect.topCenter, showWhenUnlinked: true, - child: Container( - color: showCursor ? widget.color : Colors.transparent, + // Ignore the gestures in cursor + // to solve the problem that cursor area cannot be selected. + child: IgnorePointer( + child: Container( + color: showCursor ? widget.color : Colors.transparent, + ), ), ), );