Rename class touchpad to touch

This commit is contained in:
Unrud 2022-02-03 14:51:33 +01:00
parent b3a4ca7449
commit 7fc46bf38c
3 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

View file

@ -179,7 +179,7 @@ function handleStart(evt) {
}
var touches = evt.changedTouches;
for (var i = 0; i < touches.length; i += 1) {
if (ongoingTouches.length == 0 && !touches[i].target.classList.contains("touchpad")) {
if (ongoingTouches.length == 0 && !touches[i].target.classList.contains("touch")) {
continue;
}
evt.preventDefault();

View file

@ -17,8 +17,8 @@
<p>Disconnected</p>
<button id="reloadbutton"></button>
</div>
<div id="pad" class="scene touchpad key fullscreen hidden">
<p id="padlabel" class="touchpad">Touchpad</p>
<div id="pad" class="scene touch key fullscreen hidden">
<p id="padlabel" class="touch">Touchpad</p>
<button id="keysbutton"></button>
<button id="fullscreenbutton"></button>
<button id="keyboardbutton"></button>
@ -30,8 +30,8 @@
<button id="sendbutton"></button>
</div>
</div>
<div id="keys" class="scene touchpad key fullscreen hidden">
<div class="scene touchpad">
<div id="keys" class="scene touch key fullscreen hidden">
<div class="scene touch">
<div class="buttons">
<button id="browserbackbutton"></button>
<button id="superbutton">🪟</button>
@ -48,7 +48,7 @@
<button id="volumeupbutton">🔊</button>
</div>
</div>
<div class="scene touchpad">
<div class="scene touch">
<div class="buttons">
<button id="backspacebutton"></button>
<button id="returnbutton"></button>