mapbox / mapbox/mapbox-maps-ios

Disable long press gesture on map

Open
#2,215 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged feature :green_apple:
Dominant language
Swift
Stars
601
Forks
196
PR merge metrics
No merged PRs in 30d

Description

## New Feature

There's no way to disable long press gestures on a map. And a long press gesture is not apart of the [set of gestures](https://github.com/mapbox/mapbox-maps-ios/blob/main/Sources/MapboxMaps/Gestures/GestureType.swift) you can control

## Why

This is intrusive because once a long press gesture registers, it pauses all the other gestures. The user should be able to control this behavior.

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 with Sources/MapboxMaps/Gestures/GestureType.swift and trace how the map's gestures are configured. Determine where long-press handling is registered and how it interacts with other gestures. Done means users can disable long press independently while retaining control of the existing gesture set.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev
Issue type
Feature
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.