mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: the old context menu didn't dismiss after double-tap the other place
This commit is contained in:
parent
585e71aa9d
commit
2d66dfabe8
@ -505,6 +505,13 @@ class _AppFlowySelectionState extends State<AppFlowySelection>
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _showContextMenu(TapDownDetails details) {
|
void _showContextMenu(TapDownDetails details) {
|
||||||
|
_clearContextMenu();
|
||||||
|
|
||||||
|
// For now, only support the text node.
|
||||||
|
if (!currentSelectedNodes.every((element) => element is TextNode)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
final contextMenu = OverlayEntry(
|
final contextMenu = OverlayEntry(
|
||||||
builder: (context) => ContextMenu(
|
builder: (context) => ContextMenu(
|
||||||
position: details.globalPosition,
|
position: details.globalPosition,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user