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
Describe the bug
After changing the value of controls().zoomSpeed, the initial mousewheel event zooms at the specified speed, but future events received by the underlying globe DOM node zoom at the default speed.
I worked around this by adding a new event listener, but I'm not sure how to exactly reproduce the zoomSpeed variation based on altitude (i.e. properly setting POV from outside the package). Happy to attempt a PR if you have feedback on where to put the user-supplied speed in the zoom-adjustment function.
Describe the bug
After changing the value of controls().zoomSpeed, the initial mousewheel event zooms at the specified speed, but future events received by the underlying globe DOM node zoom at the default speed.
Reproduction
https://codesandbox.io/p/sandbox/react-globe-gl-forked-f89hnq?workspaceId=ff4eac7f-570c-4bb7-aa7a-be79c7cbdde4
Expected behavior
Setting controls().zoomSpeed should override the zoom speed for the lifetime of the DOM node.
Desktop
Additional context & Workaround
The zoom speed scaling based on altitude may be responsible: https://github.com/vasturiano/globe.gl/blob/2a8a6f39717a9fd213782f943de2ce557045f699/src/globe.js#L392
I worked around this by adding a new event listener, but I'm not sure how to exactly reproduce the zoomSpeed variation based on altitude (i.e. properly setting POV from outside the package). Happy to attempt a PR if you have feedback on where to put the user-supplied speed in the zoom-adjustment function.
The text was updated successfully, but these errors were encountered: