contextmenu events not captured on Chrome for Android
Open
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
- 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
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
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