Skip to content

fix: Removes gestureHandling option from several 3D samples.#1480

Open
willum070 wants to merge 3 commits into
mainfrom
remove-gesture-handling-3d
Open

fix: Removes gestureHandling option from several 3D samples.#1480
willum070 wants to merge 3 commits into
mainfrom
remove-gesture-handling-3d

Conversation

@willum070

Copy link
Copy Markdown
Collaborator

Following Haylee's lead on b/519335379, this PR removes the gestureHandling option from all samples that were using it. The reasoning here is ironclad. While COOPERATIVE gesture handling is a great default for 2D maps embedded inside a scrollable article or web page, it creates a highly problematic user experience in 3D maps, especially in full-page demos like our samples. This is due to the following reasons:

  • In a 3D environment, users need to perform more complex navigation than in 2D (panning, tilting, rotating, and zooming). When COOPERATIVE mode is enabled, a two-fingered gesture is required to move the map; this causes a conflict since a two-fingered drag is also used to tilt and rotate.
  • Desktop users are forced to hold CTRL or CMD while using the scroll wheel.
  • Preventing the so-called "scroll trap" is not an issue with 3D maps, since the map is always styled to take up 100% of the viewport. Boom.

@willum070 willum070 requested a review from oppenheimera June 11, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants