-
Notifications
You must be signed in to change notification settings - Fork 1.3k
It's too easy to rotate the map #6562
Comments
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. |
Or, as @mayagao suggests, only recognize rotate more than x degrees if the pinch is also current in progress. |
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. |
The Android implementation has the opposite problem - rotations are quite hard to trigger. |
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. |
@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. |
I would also like the ability to increase the rotation threshold and/or the option to disable rotation while pinch-zooming. |
I'm seeing this on Android too. Zooming in a few times and my map is upside down from the rotations. |
@andrewharvey new gestures implementation for Android just landed on |
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions. |
Addressed in #15562 Please comment or reopen if this doesn't seem to be resolved. |
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
The text was updated successfully, but these errors were encountered: