mapbox / mapbox/mapbox-gl-js

Add support for pointerevents

Open
#10,624 0 comments 0 reactions 0 assignees View on GitHub
feature :green_apple:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

https://docs.mapbox.com/mapbox-gl-js/api/map/#map-events
https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent

## Motivation

Simplify such use cases, where you need to handle both, mouse and touch events: https://docs.mapbox.com/mapbox-gl-js/example/drag-a-point/

### Implementation

`map.on('pointerdown', ...`

Contributor guide

Open the contributing guide

Research direction

Start with the map.on('pointerdown', ...) entry point and review the linked Mapbox GL JS map-events documentation alongside the MDN PointerEvent reference. Trace how mouse and touch events are handled, then verify that pointer events support the same use cases without requiring separate handlers.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.