Skip to content

Commit

Permalink
Update scroll speed
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Jan 30, 2024
1 parent 15b8e0e commit 29b9252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Home2/PCLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function PCLayout({ children }: PropsWithChildren<unknown>) {
const listener = (ev: WheelEvent) => {
const delta = Math.sign(ev.deltaY);
if (ref.current) {
ref.current.scrollLeft += delta * 10;
ref.current.scrollLeft += delta * 30;
}
ev.preventDefault();
};
Expand Down

0 comments on commit 29b9252

Please sign in to comment.