Add logo.png to public. Add vertical and horizontal scroll prevent. Fix scroll index out-of-bounds bug. #21
@@ -61,7 +61,7 @@ const Home: React.FC = () => {
|
||||
}
|
||||
|
||||
const handleScrollDown = () => {
|
||||
if (currentContent >= content.length) {
|
||||
if (currentContent >= content.length - 1) {
|
||||
return
|
||||
}
|
||||
handleScrollToContent(currentContent + 1)()
|
||||
@@ -72,7 +72,7 @@ const Home: React.FC = () => {
|
||||
}
|
||||
|
||||
const handleWheel = (event: React.WheelEvent) => {
|
||||
if (event.altKey || event.ctrlKey) {
|
||||
if (event.altKey || event.ctrlKey || event.shiftKey) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user