This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
MultiFingerGesture.isSloppyGesture Performance issue #14484
Labels
Android
Mapbox Maps SDK for Android
Milestone
Steps to reproduce
Expected behavior
Method is quick to return and doesn't churn memory.
Actual behavior
metrics = new DisplayMetrics()
windowManager.getDefaultDisplay().getRealMetrics()
As the comment suggests (line #143), this should be cached on touch down rather than called every move touch event
// As orientation can change, query the metrics in touch down
Configuration
Android versions: 6.0 -> 8.0
Device models: Pixel XL, Huawei P10, Samsung S7
Mapbox SDK versions: 7.3.x -> 7.4.0-beta.1
The text was updated successfully, but these errors were encountered: