yomotsu / camera-controls

A camera control for three.js, similar to THREE.OrbitControls yet supports smooth transitions and more features.

Home Page:https://yomotsu.github.io/camera-controls/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

const deltaYFactor = isMac ? - 1 : - 3;

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