fix joystick/canvas/debug layering (z-index/order)

This commit is contained in:
Brian Beck 2026-02-12 12:45:11 -08:00
parent ebdfae9ca2
commit 0aadb3d6e7
25 changed files with 44 additions and 43 deletions

View file

@ -145,14 +145,6 @@ function MapInspector() {
</div>
</div>
)}
{isTouch && (
<TouchJoystick
joystickState={joystickStateRef}
joystickZone={joystickZoneRef}
lookJoystickState={lookJoystickStateRef}
lookJoystickZone={lookJoystickZoneRef}
/>
)}
<Canvas
frameloop="always"
gl={glSettings}
@ -185,6 +177,14 @@ function MapInspector() {
</CamerasProvider>
</Canvas>
</div>
{isTouch && (
<TouchJoystick
joystickState={joystickStateRef}
joystickZone={joystickZoneRef}
lookJoystickState={lookJoystickStateRef}
lookJoystickZone={lookJoystickZoneRef}
/>
)}
<InspectorControls
missionName={missionName}
missionType={missionType}

View file

@ -10,6 +10,8 @@ html {
*:before,
*:after {
box-sizing: inherit;
user-select: none;
-webkit-touch-callout: none;
}
html {
@ -57,7 +59,7 @@ main {
padding: 8px 12px 8px 8px;
border-radius: 0 0 4px 0;
font-size: 13px;
z-index: 1;
z-index: 2;
}
input[type="range"] {
@ -288,6 +290,7 @@ input[type="range"] {
background: rgba(0, 0, 0, 0.6);
color: #fff;
outline: none;
user-select: text;
}
.MissionSelect-input[aria-expanded="true"] {
@ -511,15 +514,13 @@ input[type="range"] {
}
.TouchJoystick {
position: absolute;
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
width: 140px;
height: 140px;
z-index: 10;
-webkit-touch-callout: none;
user-select: none;
z-index: 1;
}
.TouchJoystick--left {