mapbox / mapbox/mapbox-gl-js

contextmenu event is fired after rotating the map on windows

Open
#7,221 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

**mapbox-gl-js version**: 0.48.0

**browser**: chrome
**operating system**: windows

### Steps to Trigger Behavior

1. press and hold right mouse button on map
2. move the mouse to rotate the map
3. release right mouse button

### Link to Demonstration

This example calls alert() when contextmenu event is fired

https://jsfiddle.net/nzxvehtq/2/

### Expected Behavior

No contextmenu event fired

### Actual Behavior

On Windows, contextmenu event is fired

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 linked JSFiddle in Chrome on Windows, then trace the map's contextmenu and right-button rotation event handling. Done means rotating the map with the right mouse button and releasing it no longer fires a contextmenu event.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.