camera-controls icon indicating copy to clipboard operation
camera-controls copied to clipboard

Mouse wheel zoom doesn't work with pressed Shift on Mac

Open upisfree opened this issue 1 year ago • 1 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: https://github.com/yomotsu/camera-controls/blob/9212a8520e5385d45415f7a025d88467ca01f901/src/CameraControls.ts#L764

upisfree avatar Feb 21 '24 00:02 upisfree

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

yomotsu avatar Feb 21 '24 02:02 yomotsu