-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Disable rotation gesture when pinch zooming #10026
Conversation
1faa20b
to
50434c7
Compare
50434c7
to
95ee81a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
scaleGestureDetector.onTouchEvent(event); | ||
rotateGestureDetector.onTouchEvent(event); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Order matters?
@tobrun I've changed the dependency to 5.1.4@aar now and when im pinching to zoom my map is still spinning around, do i need to do something else to turn this off? |
Could you show me an gif or a video of it? |
@tobrun I'll Get One Sent Over As Soon As Possible Mate. - Cheers For Getting Back To Me :) |
@tobrun Attached Is A GIF, When Zooming In You're Battling With The Rotation Also, I'm Not Sure If This Is Supposed To Happen As Standard? Many Thanks |
This is what I'm seeing with 5.1.4: The expected UX is as follows: You are allowed to rotate and afterwards scale, you aren't allowed to scale and afterwards rotate. |
Let Me Test This Again, I Have Just Tested On Android 4.1.2 Device (As This Is What The App Im Doing Is Being Developed For, It's A PDA) - I Am Now Unable To Pinch To Zoom, I Can Rotate, Single Finger Double Tap To Zoom In And Double Finger Double Tap To Zoom Out All Works Fine, I'm Unable To Pinch To Zoom IN or OUT. Let Me Test On My Android 8.0 Google Pixel (Device of GIF) |
Hi @tobrun However, regarding this closed issue #9413, it's definitely better. I can now zoom and drag at the same time ;) |
I'm still not able to Pinch to Zoom on Android 4.1.2 Device? Any Idea What's Causing This? |
Thank you both for pitching in, re. delay, this is the lowering of the touchslop here. Would you both be able to take 5.2.0-SNAPSHOT for a spin and see how it performs there? To use snapshots, add the snapshots repo in the root build.gradle file: allprojects {
repositories {
jcenter()
maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
}
} In you app build.gradle replace current dependency with: compile(com.mapbox.mapboxsdk:mapbox-android-sdk:5.2.0-SNAPSHOT@aar) {
transitive = true
} |
@tobrun What is it i'm testing with this? Should i be able to pinch to zoom on my 4.1.2 Android Device? |
I'm Getting The Following Error And Crash On Google Pixel Android 8.0 When Loading MapView Project build.gradle
app build.gradle
ERROR
|
Here Is The Error From Motorola TC55 on Android 4.1.2 ERROR
|
@tobrun |
@Danny-James @paulVulog based on your feedback, looks like you're still seeing some issues with the latest version of the code. Consindering this a closed PR, and for easier tracking, would you mind opening a separate ticket? it'd be very helpful if you could add the Mapbox version you're trying, the device you're using, and any snippets and graphics that could help us reproduce your issues. Thansk! |
This PR reworks our rotation gesture handling to not execute when pinch zooming is occurring.
This UX matches what other map applications are doing atm.