Skip to content

Commit

Permalink
made copying to clipboard also happen on double clicks
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Aug 7, 2024
1 parent 0067fcc commit 4227c84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webclient/app/components/DetailsInteractiveMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ function initMap(containerId: string) {
});
map.on("click", (e) => {
if (e.type == "contextmenu") {
if (e.type === "contextmenu" || e.type === "dblclick") {
console.log(`got click ${+e} for ${props.data.id}: ${e.lngLat}`);
navigator.clipboard.writeText(`${props.data.id}: ${e.lngLat}`);
}
});
Expand Down

0 comments on commit 4227c84

Please sign in to comment.