Upgrading from v1 to v2 in ionic builds causes icon drag to lag
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
*2.0.0 - 2.5.1*:
*ios & android mobile built with ionic*:
### Steps to Trigger Behavior
1. Install version 1.13.2 of mapbox-gl-js
2. Follow the guide to creating a draggable icon here https://docs.mapbox.com/mapbox-gl-js/example/drag-a-point/
3. Ensure there are multiple points/icons visible on the map.
4. Build your code to either ios or android device
5. Open your map to the points that were created and drag them around the map. At this point everything works great.
6. Upgrade to any v2 version of mapbox-gl-js
7. Build the same code to either ios or android device
8. Open you map to the same points as before and drag them around the map and you will see significant lag between the point and your finger on the screen while dragging.
### Link to Demonstration
`v1.13.2`

`v2.0.0`

### Expected Behavior
The expected behavior is for the icon to drag with the touchmove.
### Actual Behavior
The icon is lagging way behind the icon
It should be noted that this only happens once it's been compiled and built for the mobile applications.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the draggable-point example from https://docs.mapbox.com/mapbox-gl-js/example/drag-a-point/ on iOS or Android, comparing v1.13.2 with a v2 release and multiple visible points. Start by examining the touch-drag behavior and confirm that the icon follows touchmove without the lag reported in the compiled mobile build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100