mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-14 07:56:42 +00:00
fix joystick/canvas/debug layering (z-index/order)
This commit is contained in:
parent
ebdfae9ca2
commit
0aadb3d6e7
25 changed files with 44 additions and 43 deletions
16
app/page.tsx
16
app/page.tsx
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue