From 16ef7b3dd7fe813b96c1e946402ecf48ce1bd2e6 Mon Sep 17 00:00:00 2001 From: ALi Date: Sat, 10 Sep 2022 14:11:21 +0200 Subject: [PATCH] fix: increase scroll speed --- src/pages/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index 64f7c58..26fd51c 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -641,13 +641,13 @@ export default function Home() { if (measure < thr) { scrollInSound.current.play() set.start(() => ({ - pos: [0, 0, from - 1], + pos: [0, 0, from - 2], rotation: [cam.current.rotation.x, cam.current.rotation.y, r] })) } else { scrollOutSound.current.play() set.start(() => ({ - pos: [0, 0, from + 1], + pos: [0, 0, from + 2], rotation: [cam.current.rotation.x, cam.current.rotation.y, r] })) }