settings now working

This commit is contained in:
2024-01-12 14:19:00 +01:00
parent 756ae1be58
commit 2c6b51cbb2
8 changed files with 159 additions and 41 deletions

View File

@@ -1,3 +1,3 @@
export const clamp = (val: number, min: number, max: number) => {
return val <= min ? min : val >= max ? max : val;
return Math.max(min, Math.min(val, max));
};