Handle vertical slider number parsin

This commit is contained in:
Rune Harlyk
2026-01-02 22:21:52 +01:00
committed by nikguin04
parent f3d3cb1b6f
commit a6b5b0881a
+2 -2
View File
@@ -57,7 +57,7 @@
inputData.height = Math.min(inputData.height + 0.1, 1)
return inputData
})
if (b[13]?.justPressed)
if (b[13].justPressed)
input.update(inputData => {
inputData.height = Math.min(inputData.height - 0.1, 1)
return inputData
@@ -149,7 +149,7 @@
min={0}
max={1}
step={0.01}
oninput={(v: number) => handleRange(v, 'height')}
oninput={e => handleRange(Number((e.target as HTMLInputElement).value), 'height')}
/>
<label for="height" class="text-xs font-medium opacity-70">Ht</label>
</div>