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
The reason for this request (besides that it preserves the previous behavior): We override MapController._onWheel to debounce the requests, because otherwise, on Firefox, it seems like the amount of wheel events causes significant lag. (Presumably because some handling on our end ends up being rather slow, but let's ignore that).
In this override, we collect a number of calls, adjusting the total delta, and run it each animation frame.
When trying to upgrade from 5.2.12 to 5.3.17, we experience an issue where the map will appear to zoom in and out in zigzag fashion even if the user is only zooming in with their trackpad. This seems to be (but not really sure) due to a zoom not completing before the next zoom happens, or something like that. However, changing the non-smooth transitionDuration to 0 will avoid this zig-zag motion, presumably because the zoom happens immediately and finishes before the next event comes in to be processed.
NOTE: It seems like we also have to, in the non-smooth case, eventually call the old _onWheelEnd as per
Description
I believe before 53390c9#diff-f53fd0b612f6ac98e4426c8b523b49c5b28b497f6c474cf22dec791666ff8c46 the non-smooth zoom (the only one at that point) had transitionDuration 0.
The reason for this request (besides that it preserves the previous behavior): We override
MapController._onWheel
to debounce the requests, because otherwise, on Firefox, it seems like the amount of wheel events causes significant lag. (Presumably because some handling on our end ends up being rather slow, but let's ignore that).In this override, we collect a number of calls, adjusting the total delta, and run it each animation frame.
When trying to upgrade from 5.2.12 to 5.3.17, we experience an issue where the map will appear to zoom in and out in zigzag fashion even if the user is only zooming in with their trackpad. This seems to be (but not really sure) due to a zoom not completing before the next zoom happens, or something like that. However, changing the non-smooth transitionDuration to 0 will avoid this zig-zag motion, presumably because the zoom happens immediately and finishes before the next event comes in to be processed.
NOTE: It seems like we also have to, in the non-smooth case, eventually call the old
_onWheelEnd
as perreact-map-gl/src/utils/map-controller.js
Lines 321 to 328 in c9daf7f
Repro Steps
See above
Environment (please complete the following information):
Logs
The text was updated successfully, but these errors were encountered: