vue-mapbox icon indicating copy to clipboard operation
vue-mapbox copied to clipboard

add cooperativeGestures option

Open RoduanKD opened this issue 2 years ago • 0 comments

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

RoduanKD avatar Jun 15 '22 20:06 RoduanKD