mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 14:47:13 -04:00
fix: the old context menu didn't dismiss after double-tap the other place
This commit is contained in:
parent
585e71aa9d
commit
2d66dfabe8
1 changed files with 7 additions and 0 deletions
|
@ -505,6 +505,13 @@ class _AppFlowySelectionState extends State<AppFlowySelection>
|
|||
}
|
||||
|
||||
void _showContextMenu(TapDownDetails details) {
|
||||
_clearContextMenu();
|
||||
|
||||
// For now, only support the text node.
|
||||
if (!currentSelectedNodes.every((element) => element is TextNode)) {
|
||||
return;
|
||||
}
|
||||
|
||||
final contextMenu = OverlayEntry(
|
||||
builder: (context) => ContextMenu(
|
||||
position: details.globalPosition,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue