1
0
forked from noxious/client

Made images undraggable

Fixes bug where dragging an image also drags tilemap when exiting the image container
This commit is contained in:
2024-06-05 22:19:30 +02:00
parent 66c7d58a65
commit 5b6f292361
6 changed files with 12 additions and 12 deletions

View File

@ -3,7 +3,7 @@
<div class="modal-container" :style="{ top: y + 'px', left: x + 'px' }" v-if="isModalOpenRef">
<div class="modal-header" @mousedown="startDrag">
<slot name="modal-header" />
<button @click="close"><img src="/assets/icons/close-button-white.svg" /></button>
<button @click="close"><img draggable="false" src="/assets/icons/close-button-white.svg" /></button>
</div>
<div class="modal-body">
<slot name="modal-body" />