Jelajahi Sumber

fix: cursor cannot be selected in same position.

Lucas.Xu 2 tahun lalu
induk
melakukan
89a0a5599e

+ 6 - 2
frontend/app_flowy/packages/flowy_editor/lib/render/selection/cursor_widget.dart

@@ -64,8 +64,12 @@ class CursorWidgetState extends State<CursorWidget> {
         link: widget.layerLink,
         link: widget.layerLink,
         offset: widget.rect.topCenter,
         offset: widget.rect.topCenter,
         showWhenUnlinked: true,
         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,
+          ),
         ),
         ),
       ),
       ),
     );
     );