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
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Drifting should send -mapView:regionDidChangeAnimated: with animated = YES #2379
When drift-panning (or drift-pinching etc.), MGLMapViewDelegate should receive the following messages, for consistency with MapKit (which by the way lacks an “is changing” delegate method):
-[MGLMapView notifyMapChange:] currently prefills regionChangeDelegateQueue with a didChangeAnimated operation at the time the regionWillChangeAnimated operation is queued, ensuring that the two calls have the same value for animated. But that’s incorrect. Whenever a gesture recognizer initiates a drift animation, it should cancel the prefilled didChangeAnimated operation and create a new one with YES for animated.
I stand corrected: MapKit reports a non-animated change at the end of a drift. It does report an animated change for a double-tap, and so do we. So we’re good here.
Activity
1ec5 commentedon Oct 20, 2015
-[MGLMapView notifyMapChange:]currently prefillsregionChangeDelegateQueuewith adidChangeAnimatedoperation at the time theregionWillChangeAnimatedoperation is queued, ensuring that the two calls have the same value foranimated. But that’s incorrect. Whenever a gesture recognizer initiates a drift animation, it should cancel the prefilleddidChangeAnimatedoperation and create a new one withYESforanimated.incanus commentedon Oct 20, 2015
Is that how MapKit works? In past I've thought of "animated" as meaning "programmatically-induced"; that may be incorrect though.
1ec5 commentedon Oct 20, 2015
I stand corrected: MapKit reports a non-animated change at the end of a drift. It does report an animated change for a double-tap, and so do we. So we’re good here.
[iOS] Ensure consistent willChange/didChange notifications
[iOS] Ensure consistent willChange/didChange notifications