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.

Compass/bearing snapping fails when also zooming #1064

Closed

Description

@friedbunny

If one rotates and then pinch zooms, the pinch gesture cancels the map transition called by the fancy new snapping (#1059) but bearing still gets reset and becomes out of sync. 😞

2015-03-22 21:19:55.291 Mapbox GL[5984:764115] Rotate: -2.208035º
2015-03-22 21:19:55.292 Mapbox GL[5984:764115] Should we snap?: 357.791965º
2015-03-22 21:19:55.292 Mapbox GL[5984:764115] SNAP!
2015-03-22 21:19:55.294 Mapbox GL[5984:764115] Pinch: -0.000000º
...
2015-03-22 21:26:44.939 Mapbox GL[5984:764115] Rotate: -3.104398º
2015-03-22 21:26:44.939 Mapbox GL[5984:764115] Should we snap?: 356.895602º
2015-03-22 21:26:44.940 Mapbox GL[5984:764115] SNAP!
2015-03-22 21:26:44.940 Mapbox GL[5984:764115] Pinch: -0.000000º

screen-shot-2015-03-22-at-9 20 17-pm

Activity

  1. incanus commented on Mar 23, 2015

    @incanus
    Contributor

    Ok, I'll probably end up reverting the feature in master then if it's got complications. Can hit it after the first beta...

  2. added
    iOS
    on Mar 23, 2015
  3. friedbunny commented on Mar 23, 2015

    @friedbunny
    ContributorAuthor

    Yeah, unfortunately it's not quite there yet. I'll look into putting a isSnapping check or something in there.

  4. friedbunny commented on Mar 23, 2015

    @friedbunny
    ContributorAuthor

    I've got a fix ready to go for this (e94c7a305de7e0df6e02ee58089d1ac0e9f50a29) that essentially duplicates animatingGesture stuff elsewhere. Not sure that userInteractionEnabled needs to be disabled (didn't notice any difference), but I've left that there. Wait on the PR? Will keep looking at this.

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