Skip to content

Commit

Permalink
fix: increase scroll speed
Browse files Browse the repository at this point in the history
  • Loading branch information
alimoezzi committed Sep 10, 2022
1 parent 5a5be75 commit 16ef7b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}))
}
Expand Down

0 comments on commit 16ef7b3

Please sign in to comment.