-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Swiping downward in perspective makes the map move in the opposite directions (upwards) #5281
Comments
I'm able to reproduce it easily on my nexus 6p. Are you trying this in perspective view (two finger swipe up)? Then one finger swipe down will bounce the map up ward. See my attached video (need to unzip first). |
I've run into this as well on my LG G3. I've found that the map pans as expected when panning slowly. The issue appears to be specific to the fling gesture. When I pan with some velocity and release, the map "bounces" the opposite direction when I lift my finger. |
After looking more into this, I have been able to reproduce on both cc: @zugaldia |
It seems its still there in v4.2.0 beta 4. |
Been debugging this issue in more depth and seeing a couple of scroll gestures occurring before we hit the fling gesture. Both scroll as fling hook into the Something I noticed while playing around with these calculations is that if we lower the velocity by dividing it with 6 instead of 4, the issue stops showing but this also results in the fling not feeling like a fling anymore. An idea I have been playing around with is taking in account the current tilt value. What I mean by this is that when the map is not tilted the value of 4 remains, when we tilt the map the value will gradually increase. Side note here that a related fix provided by @frederoni to handle the horizontal fling issue has made reproducing this a bit harder (related PR in #7105). |
Next steps to actually resolve the underlying issue, above is just a workaround, is to start writing some core tests to identify where this behaviour is coming from. |
Platform:
Android
Mapbox SDK version:
4.x
Steps to trigger behavior
Expected behavior
Map pans in a downward direction
Actual behavior
Map pans in a upward direction
The text was updated successfully, but these errors were encountered: