From d8933b4b746a3e427c68bf376bd5dcd80e56b205 Mon Sep 17 00:00:00 2001 From: johnshaughnessy <johnfshaughnessy@gmail.com> Date: Mon, 29 Oct 2018 17:22:33 -0700 Subject: [PATCH] Capture deltaX of wheel events for shift+wheel on Mac --- src/systems/userinput/devices/mouse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systems/userinput/devices/mouse.js b/src/systems/userinput/devices/mouse.js index 5c2426cc9..7ade93397 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") { -- GitLab