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.

It's too easy to rotate the map #6562

Closed

Description

@mayagao

When I pinch the screen to zoom in and out of the map, it's too easy to trigger map rotation, which is usually not the intended behavior. This is especially true when I zoom in and out very quickly. Is there anyway we can make it less sensitive? Maybe delay sending the pinch event https://developer.apple.com/reference/uikit/uigesturerecognizer/1624234-delaystouchesbegan or only start rotating when it's more than x degrees?

cc @1ec5 @pveugen

Activity

  1. incanus commented on Oct 3, 2016

    @incanus
    Contributor

    We could listen to the pinch + rotate combination and set a timer in the pinch recognizer. If the rotate recognizer is not also recognized in, say, one full second, disable the rotate recognizer until the pinch is complete.

    This will allow folks who do immediately pinch + rotate to freely do so in combination.

  2. added
    iOS
    MapKit parity
    on Oct 3, 2016
  3. incanus commented on Oct 3, 2016

    @incanus
    Contributor

    Or, as @mayagao suggests, only recognize rotate more than x degrees if the pinch is also current in progress.

  4. friedbunny commented on Oct 3, 2016

    @friedbunny
    Contributor

    My personal perception is that Apple Maps has a slightly higher threshold for engaging rotation during pinches — perhaps ~3-5 degrees. We don’t have any threshold, currently.

    I would not be in favor of ignoring rotation entirely during pinch zooms — this is Google’s behavior and I’m often frustrated by not being able to transition into a rotation while zooming.

  5. added
    Google Maps parity
    on Oct 4, 2016
  6. clydebarrow commented on Oct 4, 2016

    @clydebarrow
    Contributor

    The Android implementation has the opposite problem - rotations are quite hard to trigger.

  7. milo-trujillo commented on Jan 12, 2017

    @milo-trujillo

    I am seeing this behavior on iOS and Android: users frequently rotate the map by accident while zooming in and out. It would be great if we could add a detection threshold for rotations during pinches, or even make that threshold configurable through the API. If the API is configurable then the developer can choose whether to keep the Google Maps "rotate while zoom" behavior or not.

  8. Petrulak commented on May 3, 2017

    @Petrulak

    @friedbunny are there any plans to increase rotation threshold in Android SDK ? Or is it possible to disable map rotation at all ? Zooming in/out with one hand is almost impossible without rotating the map. I have to use 110 % of my "mental capabilities" to not rotate the map and i am not focusing on the data in the map at all. It would be nice to have some consistency with Google Maps since 95% of app out there are using them and user are familiar with certain behavior. It is quite annoying for me that i am always rotating the map while zooming with one hand and i am tilting the map while zooming with 2 fingers.
    We are using com.mapbox.mapboxsdk:mapbox-android-sdk:5.0.2@aar
    Thank You :)

  9. percula commented on Oct 30, 2017

    @percula

    I would also like the ability to increase the rotation threshold and/or the option to disable rotation while pinch-zooming.

  10. andrewharvey commented on Feb 25, 2018

    @andrewharvey
    Contributor

    I'm seeing this on Android too. Zooming in a few times and my map is upside down from the rotations.

  11. LukasPaczos commented on Feb 27, 2018

    @LukasPaczos
    Contributor

    @andrewharvey new gestures implementation for Android just landed on master. Please feel free to retest with 6.0.0-SNAPSHOT or upcoming 6.0.0-beta.3 and let us know whether that's still an issue for you.

  12. added
    archived
    on Jan 16, 2019
  13. stale commented on Jan 17, 2019

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

  14. removed
    archived
    on Feb 8, 2019
  15. self-assigned this
    on Jun 10, 2019
  16. removed
    Google Maps parity
    on Jun 12, 2019
  17. jmkiley commented on Dec 9, 2019

    @jmkiley
    Contributor

    Addressed in #15562

    Please comment or reopen if this doesn't seem to be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

MapKit parityUXiOS

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions