fix: cursor cannot be selected in same position.

This commit is contained in:
Lucas.Xu 2022-07-31 16:01:46 +08:00
parent 29fe4811c3
commit 89a0a5599e

View File

@ -64,8 +64,12 @@ class CursorWidgetState extends State<CursorWidget> {
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,
),
),
),
);