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

MGLMapViewDelegate receives didChange before isChanging if animations overlap #3062

Closed

Description

@1ec5

When the heading changes while tracking heading, MGLMapViewDelegate gets didChange before isChanging:

2015-11-17 17:32:27.856 Mapbox GL[6440:3159311] -[MBXViewController mapView:regionWillChangeAnimated:] y
2015-11-17 17:32:27.866 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:27.895 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:27.910 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:27.921 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:27.934 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:27.950 Mapbox GL[6440:3159311] -[MBXViewController mapView:regionDidChangeAnimated:] y {{37.4, -121.9}, {37.4, -121.9}}
2015-11-17 17:32:27.951 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:27.967 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:27.984 Mapbox GL[6440:3159311] -[MBXViewController mapView:regionWillChangeAnimated:] y
2015-11-17 17:32:27.985 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.000 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.017 Mapbox GL[6440:3159311] -[MBXViewController mapView:regionDidChangeAnimated:] y {{37.4, -121.9}, {37.4, -121.9}}
2015-11-17 17:32:28.017 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.034 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.050 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.067 Mapbox GL[6440:3159311] -[MBXViewController mapView:regionWillChangeAnimated:] y
2015-11-17 17:32:28.068 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.084 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.101 Mapbox GL[6440:3159311] -[MBXViewController mapView:regionDidChangeAnimated:] y {{37.4, -121.9}, {37.4, -121.9}}
2015-11-17 17:32:28.102 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.117 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.134 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.150 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.167 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.184 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.201 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.217 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.235 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.251 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.267 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.284 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.300 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.318 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.334 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.350 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]
2015-11-17 17:32:28.367 Mapbox GL[6440:3159311] -[MBXViewController mapViewRegionIsChanging:]

/ref #2775
/cc @friedbunny

Activity

  1. added
    iOS
    on Nov 18, 2015
  2. changed the title [-]MGLMapViewDelegate receives didChange before isChanging on tracked heading change[/-] [+]MGLMapViewDelegate receives didChange before isChanging if animations overlap[/+] on Nov 18, 2015
  3. 1ec5 commented on Nov 18, 2015

    @1ec5
    ContributorAuthor

    The problem is a bit more general than I originally thought: due in part to #2313, if an animation starts before another animation finishes, the didChange notification comes in too soon and lots of isChanging notifications come in after that.

  4. added a commit that references this issue on Nov 20, 2015
    f878dd9
  5. self-assigned this
    on Nov 20, 2015
  6. 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