Skip to content

Commit

Permalink
frontend: fix user-select and dragging of img item
Browse files Browse the repository at this point in the history
  • Loading branch information
ElysaSrc committed Jun 29, 2024
1 parent 7ee51ef commit 26f9f58
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frontend/components/viewer/map/Marker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
<div
class="map-marker-container"
:style="
{ width: `${props.highlighted ? Math.round(1.25*props.width) : props.width}px`,
height: `${props.highlighted ? Math.round(1.25*props.height) : props.height}px` }"
{
width: `${props.highlighted ? Math.round(1.25*props.width) : props.width}px`,
height: `${props.highlighted ? Math.round(1.25*props.height) : props.height}px`,
}
"
>
<img
:class="{ highlighted: !!props.highlighted }"
:width="props.highlighted ? Math.round(1.25*props.width) : props.width"
:height="props.highlighted ? Math.round(1.25*props.height) : props.height"
:src="props.highlighted ? urls.upscaled_url : urls.url"
style="cursor: pointer"
style="cursor: pointer; user-select: none;"
draggable="false"
class="map-marker"
@click="handleClick"
>
Expand Down

0 comments on commit 26f9f58

Please sign in to comment.