We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When i create some drawing shape i subscribe to the mouse events and then start drawing:
let drawingShape = new Leaflet.Draw.Rectangle(map, drawingOptions) map.on('mousedown', handleDrawingMouseDownEvent); map.on('mousemove', handleDrawingMouseMoveEvent); drawingShape.enable();
But when i press-and-hold the mouse and then move my mouse to draw a rectangle none of mousedown or mousemove events are firing.
mousedown
mousemove
So, it seems when the drawing starts all mouse events are defaultPrevented and stopPropagated and not firing to the map.
map
What should i do to catch all those mouse events?
I need mousedown event to know Rectangle's starting point coordinates and mousemove event to know the last point of the Rectangle while drawing.
The text was updated successfully, but these errors were encountered:
I'm having the same issue.
Let me know if you found a workaround @artuska
Thanks!
Sorry, something went wrong.
No branches or pull requests
When i create some drawing shape i subscribe to the mouse events and then start drawing:
But when i press-and-hold the mouse and then move my mouse to draw a rectangle none of
mousedown
ormousemove
events are firing.So, it seems when the drawing starts all mouse events are defaultPrevented and stopPropagated and not firing to the
map
.What should i do to catch all those mouse events?
I need
mousedown
event to know Rectangle's starting point coordinates andmousemove
event to know the last point of the Rectangle while drawing.The text was updated successfully, but these errors were encountered: