mapbox / mapbox/mapbox-gl-js

contextmenu events not captured on Chrome for Android

Open
#7,136 0 comments 1 reaction 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.47

browser: Chrome for Android, Chrome on Desktop using responsive screen in DevTools

Steps to Trigger Behavior
  1. Right click on map
Code snippet
map.on("contextmenu", function(e) {
    if (e.originalEvent.button == 2) {
        console.log("clicked");
    }
});
Expected Behavior

"clicked" in log.

Actual Behavior

Nothing happens. No errors. Works on FF for Desktop & Android though.

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 on Chrome for Android, or Chrome Desktop with responsive mode, using the map.on("contextmenu", ...) entry point shown in the report. Compare the event behavior with Firefox and verify that the callback logs "clicked" after the right-click gesture without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
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.