Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

MGLMapView viewport methods should cancel animations #2313

Closed

Description

@1ec5

Per #2296, methods like -[MGLMapView setCenterCoordinate:zoomLevel:] should call mbgl::Map::cancelTransitions(), just like the gesture recognizers do.

/cc @incanus

Activity

  1. added
    iOS
    on Sep 11, 2015
  2. incanus commented on Sep 11, 2015

    @incanus
    Contributor

    This would probably help #1975 (comment).

  3. incanus commented on Sep 14, 2015

    @incanus
    Contributor

    To be clear: the goal here is to avoid any sort of stale viewport changes to occur after applying another viewport change.

  4. tomtaylor commented on Sep 23, 2015

    @tomtaylor

    Just to confirm, while testing #2204, that this is an issue with setCamera too.

  5. tomtaylor commented on Sep 23, 2015

    @tomtaylor

    @incanus do you have an idea of how much work this is? The last good version for me was pre2, which seems to also contain some crashing bugs under iOS 9. I'm blocked on releasing an iOS 9 compatible version of my app at the moment.

  6. 1ec5 commented on Sep 23, 2015

    @1ec5
    ContributorAuthor

    @adam-mapbox, #2321 has been merged, but it doesn’t seem to be testing this scenario: -testSetCenterCancelsTransitions seems to:

    1. Go to DC instantaneously.
    2. Go to the west with animation.
    3. Halfway through the animation:
      1. Go back to DC instantaneously.
      2. Immediately assert that step (i) happened.

    However, to adequately test whether setting a coordinate cancels other animations, we need to perform (ii) after the animation in (2) runs to completion. This test doesn’t account for the possibility that the animation in (2) continues running after (3) is done, clobbering (i).

  7. added a commit that references this issue on Nov 20, 2015
    f878dd9
  8. self-assigned this
    on Nov 20, 2015
  9. added a commit that references this issue on Nov 25, 2015
    6916675
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugiOS

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions