Skip to content

Commit

Permalink
more sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
carlgunderson committed Jan 7, 2024
1 parent 4281171 commit d4d9c4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Deploy to GitHub Pages](https://github.com/carlgunderson/carlgunderson.github.io/actions/workflows/gh-pages.yml/badge.svg)](https://github.com/carlgunderson/carlgunderson.github.io/actions/workflows/gh-pages.yml)

## Web development portfolio of Carl Gunderson

Simple portfolio site showcasing previous projects.
6 changes: 3 additions & 3 deletions src/components/Section/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Section = () => {

isScrolling = setTimeout(() => {
handleScroll(delta)
}, 20)
}, 17)
}
scrollElRef.current.addEventListener('wheel', onWheel, false)

Expand All @@ -34,14 +34,14 @@ const Section = () => {
}, [])

const handleScroll = delta => {
if (delta > 8) {
if (delta > 7) {
// Down
if (activeIdxRef.current < jobs.length - 1) {
activeIdxRef.current = activeIdxRef.current + 1
setActiveIdx(prevIdx => prevIdx + 1)
}
}
if (delta < -8) {
if (delta < -7) {
// Up
if (activeIdxRef.current > 0) {
activeIdxRef.current = activeIdxRef.current - 1
Expand Down

0 comments on commit d4d9c4c

Please sign in to comment.