Fixed the bug of being unable to use ctrl+scroll wheel to adjust zoom

This commit is contained in:
2023-09-12 00:01:53 +08:00
parent ca1ffb640e
commit f52ad7483c
2 changed files with 7 additions and 1 deletions

View File

@@ -53,6 +53,10 @@ const Home: React.FC = () => {
}
const handleWheel = (event: React.WheelEvent) => {
if (event.altKey || event.ctrlKey) {
return
}
if (event.deltaY > 0) {
handleScrollToDown()
setNavbarHidden(false)