Add 'user-select: none' to sim elements that shouldn't be draggable

This commit is contained in:
Caitlin Hennessy 2017-08-02 10:30:14 -07:00
parent f7658e1ce8
commit 25d17231ac

View File

@ -50,6 +50,12 @@ namespace pxsim.visuals {
.sim-light-level-button { .sim-light-level-button {
stroke:#fff; stroke:#fff;
stroke-width: 3px; 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 { .sim-antenna {
@ -75,6 +81,11 @@ namespace pxsim.visuals {
.sim-thermometer { .sim-thermometer {
stroke:#aaa; stroke:#aaa;
stroke-width: 3px; stroke-width: 3px;
user-select: none;
-moz-user-select: none;
-webkit-user-drag: none;
-webkit-user-select: none;
-ms-user-select: none;
} }
/* animations */ /* animations */
@ -136,6 +147,13 @@ namespace pxsim.visuals {
.sim-wireframe .sim-board { .sim-wireframe .sim-board {
stroke-width: 2px; 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 = ` const MB_HIGHCONTRAST = `
.sim-led { .sim-led {