Skip to content
Snippets Groups Projects
Commit 6cc13fec authored by Matthias Konitzny's avatar Matthias Konitzny :fire:
Browse files

Fixes text selection problems for older browser versions.

parent eb9b0f28
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,16 @@
z-index: 1;
}
.no-select {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
}
.close-button {
pointer-events: all;
z-index: 99;
......
......@@ -442,6 +442,7 @@ export default class Graph {
const labelDiv = Helpers.createDiv("node-label", nodeDiv, {
textContent: node.name,
});
labelDiv.classList.add("no-select");
labelDiv.style.color = node.color;
const cssobj = new CSS3DSprite(nodeDiv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment