Fix scroll down when horizontal scroll bug

This commit is contained in:
2023-09-23 16:22:57 +08:00
parent 420cb1378c
commit 6fc0df74fa

View File

@@ -72,7 +72,7 @@ const Home: React.FC = () => {
}
const handleWheel = (event: React.WheelEvent) => {
if (event.altKey || event.ctrlKey || event.shiftKey) {
if (event.altKey || event.ctrlKey || event.shiftKey || event.deltaY === 0) {
return
}