mirror of
https://github.com/wassname/cardsforscience.git
synced 2026-08-11 11:16:12 +08:00
Prevent user from selecting DOM element when clicking detector
This commit is contained in:
committed by
Tadej Novak
parent
f92bf03e17
commit
8b007637a3
@@ -100,6 +100,15 @@ h1 br {
|
||||
width: 99%;
|
||||
}
|
||||
|
||||
.prevent-select {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
[ng\:cloak], [ng-cloak], .ng-cloak {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
+1
-1
@@ -109,7 +109,7 @@
|
||||
<canvas id="detector-core" width="400" height="400">
|
||||
Your detector. Click on it to generate events.
|
||||
</canvas>
|
||||
<canvas ng-click="dc.click()" id="detector-events" width="400" height="400">
|
||||
<canvas ng-click="dc.click()" id="detector-events" width="400" height="400" class="prevent-select">
|
||||
Your detector. Click on it to generate events.
|
||||
</canvas>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -167,7 +167,7 @@
|
||||
<canvas id="detector-core" width="400" height="400">
|
||||
Your detector. Click on it to generate events.
|
||||
</canvas>
|
||||
<canvas ng-click="dc.click()" id="detector-events" width="400" height="400">
|
||||
<canvas ng-click="dc.click()" id="detector-events" width="400" height="400" class="prevent-select">
|
||||
Your detector. Click on it to generate events.
|
||||
</canvas>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user