Mouse wheel zoom doesn't work with pressed Shift on Mac
upisfree opened this issue · comments
Hi! Thanks for the great library.
I found an issue on Mac in Chrome. If I zoom with mouse wheel or touchpad, everything is fine. But if press Shift and try to zoom with mouse, zoom is not working. However, if I press Shift and zoom with touchpad, it works fine. On Windows Shift + mouse wheel zoom works fine.
Can be reproduced in this demo: https://yomotsu.github.io/camera-controls/examples/orthographic.html
Maybe problem lies here, but I am not sure:
camera-controls/src/CameraControls.ts
Line 764 in 9212a85
Thanks for your report.
So, it only happens with a mouse wheel + shift key on macOS.
(I need to prepare a mouse device for Mac then