diff --git a/src/systems/userinput/devices/mouse.js b/src/systems/userinput/devices/mouse.js index 5c2426cc91139809858a2395ef0669438dce31ef..7ade933976a29741271e6e6922acb0a620ac9756 100644 --- a/src/systems/userinput/devices/mouse.js +++ b/src/systems/userinput/devices/mouse.js @@ -27,7 +27,7 @@ export class MouseDevice { process(event) { if (event.type === "wheel") { - this.wheel += event.deltaY / modeMod[event.deltaMode]; + this.wheel += (event.deltaX + event.deltaY) / modeMod[event.deltaMode]; return; } if (event.type === "mouseout" || event.type === "blur") {