Changed min token and note scale to 0.5 and fix grid snapping for non integer values

This commit is contained in:
Mitchell McCaffrey
2020-11-06 15:48:35 +11:00
parent 088466ea07
commit cb2c432d0a
5 changed files with 72 additions and 66 deletions

View File

@@ -63,7 +63,7 @@ function NoteMenu({
}
function handleSizeChange(event) {
const newSize = parseInt(event.target.value);
const newSize = parseFloat(event.target.value);
note && onNoteChange({ ...note, size: newSize });
}
@@ -177,8 +177,8 @@ function NoteMenu({
<Slider
value={(note && note.size) || 1}
onChange={handleSizeChange}
step={1}
min={1}
step={0.5}
min={0.5}
max={noteMaxSize}
mr={1}
/>