JamesLMilner / terra-draw

A library for drawing on maps that supports Mapbox, MapLibre, Google Maps, OpenLayers and Leaflet out the box
https://terradraw.io
MIT License
447 stars 50 forks source link

How to disable the right -click event? #284

Closed Thunder7991 closed 1 week ago

Thunder7991 commented 1 month ago

In Mapbox, the prohibition of rotating operations failed, and after investigation, it was caused by the right-click time conflict with Terra-Draw.

JamesLMilner commented 3 weeks ago

Right click would only disabled rotations if the user is in select mode and their cursor over a coordinate - this happens so we can intercept the event to be able to move or delete coordinates, or reposition a geometry in Terra Draw. I wasn't able to make this occur outside of that expected behaviour:

https://github.com/user-attachments/assets/68a4a26d-c476-4c4a-a1e8-6243b44e1789

If you have specific detailed reproduction steps please share them.

JamesLMilner commented 1 week ago

Without further detailed information on the issue here I'll have to close this out unfortunately. Feel free to open a new issue if you have detailed instructions on how to reproduce. Perhaps a video would help clarify.