svghmi/gen_index_xhtml.ysl2
branchsvghmi
changeset 3082 20a5eb6a02e6
parent 3077 82312473d153
child 3108 079419e7228d
--- a/svghmi/gen_index_xhtml.ysl2	Wed Dec 02 14:30:58 2020 +0100
+++ b/svghmi/gen_index_xhtml.ysl2	Wed Dec 02 14:31:57 2020 +0100
@@ -66,7 +66,9 @@
              xmlns:svg="http://www.w3.org/2000/svg"
              xmlns:xlink="http://www.w3.org/1999/xlink" {
             head;
-            body style="margin:0;overflow:hidden;user-select:none;" {
+            // prevents user selection by mouse click / touch and drag
+            // prevents pinch zoom and other accidental panning panning with touch devices
+            body style="margin:0;overflow:hidden;user-select:none;touch-action:none;" {
                 // Inline SVG
                 copy "$result_svg";
                 script{