Fixed the bug of being unable to use ctrl+scroll wheel to adjust zoom
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user