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

disable rotation when appropriate #242

Closed
3 tasks done
incanus opened this issue May 23, 2014 · 2 comments
Closed
3 tasks done

disable rotation when appropriate #242

incanus opened this issue May 23, 2014 · 2 comments
Labels
Milestone

Comments

@incanus
Copy link
Contributor

incanus commented May 23, 2014

We should behave like Apple and gently correct/un-rotate when rotation is not appropriate.

  • When z < 3, disallow rotation.

  • Disable pinch and rotate gestures when at limits to avoid weird interactions.

  • When rotated and near world edge, un-rotate and disallow if off-world would be visible in viewport corners.

    img_1884

    img_1885

Related: #48

@incanus incanus added the bug label May 23, 2014
@incanus incanus added this to the WWDC milestone May 23, 2014
@incanus
Copy link
Contributor Author

incanus commented May 23, 2014

anigif-1400888629

@incanus
Copy link
Contributor Author

incanus commented May 24, 2014

3c5a2c7 hits the first & third scenarios and cutting-room-floor/mapbox-gl-cocoa@38fabc6 takes care of the second.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant