SVGHMI: prevents text and svg elements selection on the whole page when dragging. svghmi
authorEdouard Tisserant
Wed, 25 Nov 2020 14:46:25 +0100
branchsvghmi
changeset 3077 82312473d153
parent 3076 f1efd1c01991
child 3078 d345673610b0
SVGHMI: prevents text and svg elements selection on the whole page when dragging.
svghmi/gen_index_xhtml.ysl2
--- a/svghmi/gen_index_xhtml.ysl2	Wed Nov 25 14:45:01 2020 +0100
+++ b/svghmi/gen_index_xhtml.ysl2	Wed Nov 25 14:46:25 2020 +0100
@@ -66,7 +66,7 @@
              xmlns:svg="http://www.w3.org/2000/svg"
              xmlns:xlink="http://www.w3.org/1999/xlink" {
             head;
-            body style="margin:0;overflow:hidden;" {
+            body style="margin:0;overflow:hidden;user-select:none;" {
                 // Inline SVG
                 copy "$result_svg";
                 script{