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.

Opening control center during pan animation causes map to disappear #2158

Closed

Description

@bmeine

I've only tested this on a physical device with iOS 7.1 using the sample app.

To reproduce:
-Zoom in far enough that you have plenty of panning room (max or close to it)
-Start panning very fast from bottom to top
-During one of the rapid upward swipes, start your finger below the screen so it brings up the control center
-The control center opens and the map is gone...the Mapbox logo and attribution are still there

It seems to only happen if the control center is opened while the panning animation is still running.

Activity

  1. added
    iOS
    on Aug 24, 2015
  2. 1ec5 commented on Aug 24, 2015

    @1ec5
    Contributor

    MGLMapView throws up a snapshot of the map upon receiving a UIApplicationWillResignActiveNotification or UIApplicationDidEnterBackgroundNotification, to avoid making OpenGL calls in the background (which causes crashes). The snapshot taken during animation can sometimes be behind or omit some tiles.

    We added the UIApplicationWillResignActiveNotification because we were still seeing background-drawing crashes. However, that was probably #1460, fixed in #1869, so we should double-check whether snapshotting on UIApplicationWillResignActiveNotification is still required.

  3. 1ec5 commented on Aug 24, 2015

    @1ec5
    Contributor

    (The same behavior occurs with Notification Center or any modal alert.)

  4. incanus commented on Aug 24, 2015

    @incanus
    Contributor

    Another option here would be to cancelAnimations() upon receiving the signal?

  5. 1ec5 commented on Oct 6, 2015

    @1ec5
    Contributor

    #2309 is an attempt at fixing this issue.

  6. self-assigned this
    on Nov 9, 2015
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