From 3f58e259619c5d0ee644b3bcaa281602538a3593 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Mon, 24 Jul 2023 19:37:56 +0200 Subject: [PATCH] [Editor] Avoid spurious text selection when double clicking to add a FreeText In order to reproduce the original issue: - switch to freetext mode - add a text somewhere - double click outside and add some text - repeat the previous step several times no text is selected during the edition. --- web/annotation_editor_layer_builder.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/annotation_editor_layer_builder.css b/web/annotation_editor_layer_builder.css index 312a190b6..a13224344 100644 --- a/web/annotation_editor_layer_builder.css +++ b/web/annotation_editor_layer_builder.css @@ -114,6 +114,7 @@ resize: none; font: 10px sans-serif; line-height: var(--freetext-line-height); + user-select: none; } .annotationEditorLayer .freeTextEditor .overlay { @@ -137,6 +138,7 @@ .annotationEditorLayer .freeTextEditor .internal:focus { outline: none; + user-select: auto; } .annotationEditorLayer .inkEditor.disabled {