-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Double tap zoom gesture moves to quickly #7514
Comments
My initial idea was that this is related to screen density since the devices having this issue were mostly newer devices with a large pixel ratio. Now looking into the code I'm seeing that this is not related to the x,y value of pixels but that issue is coming from My hunch is that scale factor is too large due to screen density (this value is coming from an external dependency and we would have to work around this in our code) or that the values we are feeding core are not correct (eg. negative values or spike values, in normal situations I'm seeing logs with values around 1 but when a major shift happens I'm seeing a sole value that is negative (eg -0.56) or a value that is way larger as the rest (eg. 14). |
Here are some sequences of scale factors provided to the SDK from our gesture detector library: V/MapGestureDetector$ScaleGestureListener: Scale 1.0046271 or V/MapGestureDetector$ScaleGestureListener: Scale 0.946373 I'm currently trying out the latter approach in #7514 (comment) and allowing values >0.8 and <1.2. |
We offer the double tap to zoom in/out on the map but currently the zooming will happen too quickly when barely dragging your finger up or down.
cc: @mapbox/android
The text was updated successfully, but these errors were encountered: