You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
I solved it in a cheap way, I know otherwise you have to use raycasting (send a ray which goes through the camera and the mouse and then hitTest if the ray collides with the globe):
function onMouseWheel(event) {
console.log("Mouse X Y :: ", event.x, event.y);
if (event.x > 720 && event.x < 1180 && event.y > 120 && event.y < 330) {
event.preventDefault();
if (overRenderer) {
zoom(event.wheelDeltaY * 0.3);
}
}
return false;
}
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How can we achieve that the globe only zooms in/out when the mouse is over the globe itself, instead of that the mouse is just over the canvas?
The text was updated successfully, but these errors were encountered: