Allow 0.1 step for emit speed and tempo

This commit is contained in:
Jage9
2026-02-22 22:21:27 -05:00
parent 0d506d8066
commit 12c7bd89ce
4 changed files with 13 additions and 13 deletions

View File

@@ -308,13 +308,13 @@ export function createItemPropertyEditor(deps: EditorDeps): {
} else if (
propertyKey === 'mediaVolume' ||
propertyKey === 'emitVolume' ||
propertyKey === 'emitSoundSpeed' ||
propertyKey === 'emitSoundTempo' ||
propertyKey === 'emitRange' ||
propertyKey === 'sides' ||
propertyKey === 'number'
) {
if (!submitNumericParam(propertyKey, true)) return;
} else if (propertyKey === 'emitSoundSpeed' || propertyKey === 'emitSoundTempo') {
if (!submitNumericParam(propertyKey, false)) return;
} else if (propertyKey === 'mediaEffect' || propertyKey === 'emitEffect') {
const normalized = value.trim().toLowerCase();
if (!deps.effectIds.has(normalized)) {