disable selection if message not highlighted
This commit is contained in:
parent
d7f89eb98c
commit
5a6cc913e8
2 changed files with 3 additions and 0 deletions
|
|
@ -343,6 +343,8 @@ class MessageContent extends StatelessWidget {
|
|||
mode: MessageMode.play,
|
||||
),
|
||||
),
|
||||
enableInteractiveSelection:
|
||||
toolbarController?.highlighted ?? false,
|
||||
// text: snapshot.data ??
|
||||
// event.calcLocalizedBodyFallback(
|
||||
// MatrixLocals(L10n.of(context)!),
|
||||
|
|
|
|||
|
|
@ -124,6 +124,7 @@ class PangeaRichTextState extends State<PangeaRichText> {
|
|||
.onTextSelection(selection);
|
||||
},
|
||||
onTap: () => widget.toolbarController.showToolbar(context),
|
||||
enableInteractiveSelection: widget.toolbarController.highlighted,
|
||||
contextMenuBuilder: (context, state) =>
|
||||
widget.toolbarController.highlighted
|
||||
? const SizedBox.shrink()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue