Raruto / leaflet-rotate

Leaflet plugin that allows to add rotation functionality to map tiles
GNU General Public License v3.0
81 stars 23 forks source link

How do I disable `scrollWheelZoom` handler? #41

Closed kemy971 closed 1 year ago

kemy971 commented 1 year ago

Hello, I use leaflet to annotate images. Your plugin is very useful for my project, because it allows me to rotate images, it's great. My problem is that since I've been using your plugin, I can't disable the scrollWheelZoom on the image. Is there a solution?

Raruto commented 1 year ago

Hi Kèmy,

it should be enough:

shiftKeyRotate: false,

To be sure, also take a look at the others handlers within the src/map/handler folder:

• src/map/handler/ShiftKeyRotate.js

https://github.com/Raruto/leaflet-rotate/blob/48e97a6408df7796b3e06e6d8eb0729eb504b1be/src/map/handler/ShiftKeyRotate.js#L1-L56

👋 Raruto

kemy971 commented 1 year ago

It works well ! Merci