Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cooperativeGestures option #258

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

RoduanKD
Copy link

@RoduanKD RoduanKD commented Jun 15, 2022

Peace be upon you guys!
I hope you're doing well.
I've added support to cooperative gestures, enabling zoom scrolling only when holding ctrl/command key.
sample usage:

<mgl-map
    id="map"
    :access-token="accessToken"
    :map-style="style"
    :cooperative-gestures="true"
    @load="onMapLoad"
/>

screenshot:

image

incase someone needed this feature before this pull is merged you can use it by installing the package from this pull request directly:
npm i soal/vue-mapbox#pull/258/head

have a nice day.
thanks

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.

None yet

1 participant