Skip to content

Commit

Permalink
Merge pull request #100 from RAIRLab/22-prevent-text-from-being-highl…
Browse files Browse the repository at this point in the history
…ighted-when-mouse-draged-outside-of-ui-1

Prevent Text From being highlighted
  • Loading branch information
James-Oswald authored Oct 9, 2023
2 parents 0bea196 + 2fae566 commit 71eff51
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,9 @@ p {
left: 0px;
z-index: -1;
}
.no-highlight{
user-select: none;
-moz-user-select: none;
-webkit-text-select: none;
-webkit-user-select: none;
}
8 changes: 4 additions & 4 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</head>
<body>
<header id="header">
<p>Peirce My Heart</p>
<p class="no-highlight">Peirce My Heart</p>
</header>
<div id="sidebar">
<div class="row">
Expand All @@ -32,13 +32,13 @@
<div id="toolbar">
<div id="cutTools">
<div class="toolSetting">
<p>Show Guidelines:</p>
<p class="no-highlight">Show Guidelines:</p>
</div>
<div class="toolSetting">
<input id="showRect" type="checkbox" title="Show Rect"/>
</div>
<div class="toolSetting">
<p>Cut Mode:</p>
<p class="no-highlight">Cut Mode:</p>
</div>
<div class="toolSetting">
<select id="mode" name="guideSelector">
Expand All @@ -47,7 +47,7 @@
</select>
</div>
<div class="toolSetting">
<p id="graphString"></p>
<p class="no-highlight" id="graphString"></p>
</div>
</div>
</div>
Expand Down

0 comments on commit 71eff51

Please sign in to comment.