mapbox / mapbox/mapbox-gl-js

Move towards the reverse direction after drag a long distance

Open
#8,996 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

**mapbox-gl-js version**: 1.4.1 (I guess almost every version has this issue)

**browser**: Chrome 78
**platform**: Windows 10
### Steps to Trigger Behavior

1. Drag fast from bottom to top at some angle (It won`t happen when you just drag a short distance or at no angle)
### Link to Demonstration

![bug](https://user-images.githubusercontent.com/18300790/69207712-da5b5600-0b8b-11ea-8773-eb455fc8ff4b.gif)

### Expected Behavior
move towards the right direction
### Actual Behavior
move towards the right direction at the first moment
and then move towards reverse direction till stop moving

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

No source file or test is named. Reproduce the issue with mapbox-gl-js 1.4.1 in Chrome on Windows by dragging quickly from bottom to top at an angle, then trace the drag interaction behavior. Done means the map continues moving in the intended direction without reversing before stopping.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.