Add support for pointerevents
Open
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
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