mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: double gain
This commit is contained in:
1 parent
186ea8b458
commit
8565d75747
1 file changed
+1
-1
@@ -138,7 +138,7 @@ export default function Page() {
|
|||||||
{values.map((value, index) => {
|
{values.map((value, index) => {
|
||||||
const deltaPercentage = (value ?? 1) / (values[0] ?? 1) - 1;
|
const deltaPercentage = (value ?? 1) / (values[0] ?? 1) - 1;
|
||||||
const normalizedDeltaPercentage = Math.round(
|
const normalizedDeltaPercentage = Math.round(
|
||||||
Math.min(100, Math.abs(deltaPercentage) * 100 + 25),
|
Math.min(100, Math.abs(deltaPercentage) * 2 * 100 + 25),
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in new issue
Block a user