From 25d17231ac699e5df4b90a0237dd8c1807f9cf64 Mon Sep 17 00:00:00 2001 From: Caitlin Hennessy Date: Wed, 2 Aug 2017 10:30:14 -0700 Subject: [PATCH] Add 'user-select: none' to sim elements that shouldn't be draggable --- sim/visuals/microbit.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sim/visuals/microbit.ts b/sim/visuals/microbit.ts index 37ec4d31..3a09a544 100644 --- a/sim/visuals/microbit.ts +++ b/sim/visuals/microbit.ts @@ -50,6 +50,12 @@ namespace pxsim.visuals { .sim-light-level-button { stroke:#fff; stroke-width: 3px; + user-drag: none; + user-select: none; + -moz-user-select: none; + -webkit-user-drag: none; + -webkit-user-select: none; + -ms-user-select: none; } .sim-antenna { @@ -75,6 +81,11 @@ namespace pxsim.visuals { .sim-thermometer { stroke:#aaa; stroke-width: 3px; + user-select: none; + -moz-user-select: none; + -webkit-user-drag: none; + -webkit-user-select: none; + -ms-user-select: none; } /* animations */ @@ -136,6 +147,13 @@ namespace pxsim.visuals { .sim-wireframe .sim-board { stroke-width: 2px; } + .sim-board { + user-select: none; + -moz-user-select: none; + -webkit-user-drag: none; + -webkit-user-select: none; + -ms-user-select: none; + } `; const MB_HIGHCONTRAST = ` .sim-led {