From e8472abb69a72b1a7670ecabcbe6e4f227eed773 Mon Sep 17 00:00:00 2001 From: Roduan Kareem Aldeen <37983260+RoduanKD@users.noreply.github.com> Date: Wed, 15 Jun 2022 23:19:23 +0300 Subject: [PATCH] add cooperativeGestures option --- docs/api/README.md | 7 +++++++ src/components/map/options.js | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/docs/api/README.md b/docs/api/README.md index c7365d69..b05c1d88 100644 --- a/docs/api/README.md +++ b/docs/api/README.md @@ -295,6 +295,13 @@ - **Description:** A `fitBounds` object to use only when fitting the initial `bounds` provided above - **See:** `options.fitBoundsOptions` in [Map](https://docs.mapbox.com/mapbox-gl-js/api/#map) +### `cooperativeGestures` + +- **Type:** `Boolean` +- **Default:** `true` +- **Description:** If true , scroll zoom will require pressing the ctrl or ⌘ key while scrolling to zoom map +- **See:** `options.cooperativeGestures` in [Map](https://docs.mapbox.com/mapbox-gl-js/api/#map) + ## Actions Asynchronous actions exposed via `GlMap.actions` diff --git a/src/components/map/options.js b/src/components/map/options.js index 8ce369a0..16c5bc99 100644 --- a/src/components/map/options.js +++ b/src/components/map/options.js @@ -186,5 +186,9 @@ export default { crossSourceCollisions: { type: Boolean, default: true + }, + cooperativeGestures: { + type: Boolean, + default: true } };