fix: selection areas could not overlay

This commit is contained in:
Lucas.Xu 2022-07-31 15:57:22 +08:00
parent b245841ec3
commit 29fe4811c3
2 changed files with 7 additions and 3 deletions
frontend/app_flowy/packages/flowy_editor/lib

View File

@ -25,8 +25,12 @@ class _SelectionWidgetState extends State<SelectionWidget> {
link: widget.layerLink,
offset: widget.rect.topLeft,
showWhenUnlinked: true,
child: Container(
color: widget.color,
// Ignore the gestures in selection overlays
// to solve the problem that selection areas cannot overlap.
child: IgnorePointer(
child: Container(
color: widget.color,
),
),
),
);

View File

@ -5,7 +5,7 @@ import 'package:flowy_editor/document/position.dart';
import 'package:flowy_editor/document/selection.dart';
import 'package:flowy_editor/render/selection/selectable.dart';
import 'package:flowy_editor/render/selection/cursor_widget.dart';
import 'package:flowy_editor/render/selection/flowy_selection_widget.dart';
import 'package:flowy_editor/render/selection/selection_widget.dart';
import 'package:flowy_editor/extensions/object_extensions.dart';
import 'package:flowy_editor/extensions/node_extensions.dart';
import 'package:flutter/gestures.dart';