Add logo.png to public. Add vertical and horizontal scroll prevent. Fix scroll index out-of-bounds bug. #21

Merged
FatttSnake merged 5 commits from FatttSnake into dev 2023-09-22 16:33:13 +08:00
Showing only changes of commit bba86ade6d - Show all commits

View File

@@ -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
}