Repository navigation
Prevent drag and drop action using react-map-gl/maplibre Marker #2558
jonnycapo-dev
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I need to enable the drag-and-drop action in the MapLibre Marker component only when the Ctrl key is held down. I tried blocking it in the Marker's onDragStart event, but the originalEvent doesn't seem to be returned. Am I doing something logically wrong? Any suggestions?
All reactions