Skip to content

Conversation

@LukasPaczos
Copy link

Description

The NavigationScaleGestureHandler used to update the focal point of the gesture plugin on each frame of the camera animation, and on each frame of the location puck's animation, which resulted in hundreds of calls to MapboxMap#pixelForCoordinate per second.

This PR tries to lazily recalculate the focal point only when the map is actually interacted with.

cc @tobrun who noticed the increased number of calls to the projection API made by the SDK in general

@LukasPaczos LukasPaczos added UI Work related to visual components, Android Auto, Camera, 3D, voice, etc. improvement Improvement for an existing feature. labels May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvement for an existing feature. UI Work related to visual components, Android Auto, Camera, 3D, voice, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant