mapbox / mapbox/mapbox-gestures-android

Wrong focal point when zooming out

Open
#40 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
30
Forks
23
PR merge metrics
No merged PRs in 30d

Description

While testing [MapboxGLAndroidSDKTestApp](https://github.com/mapbox/mapbox-gl-native/tree/release-boba/platform/android/MapboxGLAndroidSDKTestApp) ([`release-boba` branch](https://github.com/mapbox/mapbox-gl-native/tree/release-boba)) found 👇

![wrong_focal_point_zooming_out](https://user-images.githubusercontent.com/1668582/38504581-556bdb78-3c15-11e8-87ee-28914a2a2625.gif)

This is the [`SimpleMapActivity`](https://github.com/mapbox/mapbox-gl-native/blob/release-boba/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/SimpleMapActivity.java) running in a Nexus 5 (Android 6.0).

Steps to reproduce:

1. Launch `SimpleMapActivity`
2. Zoom in (quick double tap with 1 finger)
3. Zoom out (quick single tap with 2 fingers)
4. As shown above map scrolls when it shouldn't

Noting that it doesn’t reproduce always.

👀 @LukasPaczos

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in SimpleMapActivity at platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/SimpleMapActivity.java on the release-boba branch. Follow the zoom-in and two-finger zoom-out steps on Android, repeating them because the problem is intermittent. Done means zooming out no longer scrolls the map unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.