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

Right click triggers draw:drawvertex event #1060

Open
4 tasks done
hari0603 opened this issue Mar 19, 2023 · 0 comments
Open
4 tasks done

Right click triggers draw:drawvertex event #1060

hari0603 opened this issue Mar 19, 2023 · 0 comments

Comments

@hari0603
Copy link

  • I'm reporting a bug, not asking for help
  • I've looked at the documentation to make sure the behaviour is documented and expected
  • I'm sure this is a Leaflet Draw code issue, not an issue with my own code or the framework I'm using (Cordova, Ionic, Angular, React…)
  • I've searched through the issues to make sure it's not yet reported

How to reproduce

  • Leaflet version I'm using: 1.6.0
  • Leaflet Draw version I'm using: 1.0.4
  • Browser (with version) I'm using: Chrome (108.0.5359.124)
  • OS/Platform (with version) I'm using: Ubuntu 20.04

Steps to reproduce

  • Setup polygon handler using L.Draw.Polygon
  • Enable polygon handler
  • Right-click on the map and confirm that new vertices are getting added.
  • This issue is also present in the

What behaviour I'm expecting and which behaviour I'm seeing

  • Only left-click events should add new vertices.

Minimal example reproducing the issue

This issue is present in Leaflet 1.0+ Demo as well.

Additional information

Big fan of the Leaflet community! I wanted to know if this behaviour was decided by design. If not, I would love to contribute by raising a PR to fix this.

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

No branches or pull requests

1 participant