diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-07-23 17:43:01 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-07-23 17:43:05 +0300 |
commit | 3512da96093916b09d925d9a64957011de6af8dc (patch) | |
tree | 4cd0681fa3c95acfb9de5713464dd434373e624c /include | |
parent | 7b47fa8dab7ba65c62caa1e1bfc07d3b0b2451c8 (diff) | |
download | qtlocation-mapboxgl-3512da96093916b09d925d9a64957011de6af8dc.tar.gz |
Avoid nudging transitions if a gesture is in progress
We're now using nudgeTransitions() to tell the Map view that we want to
update it. However, if we're on a gesture movement, the update() call
can get called too fast and causing general slowdown. This check ensures
we only call for nudgeTransitions() after all gesture events are
finished. Fixes the issue pointed out by #1548 on Android.
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/android/native_map_view.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/android/native_map_view.hpp b/include/mbgl/android/native_map_view.hpp index 5e0df4dd44..e65c16869c 100644 --- a/include/mbgl/android/native_map_view.hpp +++ b/include/mbgl/android/native_map_view.hpp @@ -49,7 +49,7 @@ public: void enableFps(bool enable); void updateFps(); - void onInvalidate(); + void onInvalidate(bool inProgress); void resizeView(int width, int height); void resizeFramebuffer(int width, int height); |