Repository navigation
feat: add pitch gestures - #2282
Open
greensopinion wants to merge 1 commit into
Open
greensopinion wants to merge 1 commit into
greensopinion wants to merge 1 commit into
Conversation
Closed
A map whose maxPitch is above 0 can now be pitched by the user: with a two-finger vertical drag on a touch screen, and with Ctrl-drag on a desktop, which then rotates with horizontal movement and pitches with vertical movement, as in MapLibre GL JS. While pitch gestures are enabled, a two-finger gesture doesn't zoom, rotate or move the map until the map has decided whether it is a pitch gesture, so that a pitch drag doesn't also move the map. Maps that keep maxPitch at 0 behave as before.
greensopinion
force-pushed
the
pitch-2-gestures
branch
from
October 25, 2026 23:14
66b72e5 to
bc99c73
Compare
Collaborator
Author
|
force-pushed to rebase over #2283 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A map whose maxPitch is above 0 can now be pitched by the user: with a
two-finger vertical drag on a touch screen, and with Ctrl-drag on a
desktop, which then rotates with horizontal movement and pitches with
vertical movement, as in MapLibre GL JS. While pitch gestures are
enabled, a two-finger gesture doesn't zoom, rotate or move the map until
the map has decided whether it is a pitch gesture, so that a pitch drag
doesn't also move the map. Maps that keep maxPitch at 0 behave as before.
Depends on #2283.
I wrote this with Claude Code (Claude Opus 5.5). I directed the design,
reviewed the code, and tested it on a Mac, an iPhone 13, an iPhone 15 Pro
Max, a Pixel 4a (5G), and in Chrome.