-
Notifications
You must be signed in to change notification settings - Fork 1.3k
-[MGLMapViewDelegate mapView: regionDidChangeAnimated:] redundant calls #7119
Comments
Assuming |
@1ec5 The workaround suggested by you will not work as the newly set bounds are simply not "updated" immediately and on the next delegate call I still get the old ones.
Generates the following output after first call:
After second call:
|
Closing due to ticket age. If this is still a problem, please re-open |
This issue was originally filed due to difficulty constraining gestures to an offline region. As of #5584, you can implement the |
Platform: iOS
Mapbox SDK version: ios-v3.4.0-beta.2
Steps to trigger behavior
-[MGLMapViewDelegate mapView: regionDidChangeAnimated:]
method is called every time a bounds is set, even if the bounds is the same as before.Expected behavior
Delegate's method should not be called if the bounds are not actually changed as the same bounds is set as before.
Actual behavior
Delegate's method is called every time. The code above cycles the stack.
The text was updated successfully, but these errors were encountered: