Postlagerkarte / blazor-dragdrop

Easy-to-use Drag and Drop Library for Blazor
MIT License
403 stars 96 forks source link

How to make images draggable #135

Open rleath82 opened 2 years ago

rleath82 commented 2 years ago

I'm trying to use this with images that are loaded from an external blob storage, but it won't let me drag them. If I make the "flex-item" width/height larger, it will let me drag them by clicking outside of the image, but not clicking the image itself.

This is what I'm doing:

`

<Dropzone Class="flex-container" Items="userBlobThumbs" ItemWrapperClass="@(item => "flex-item")">

@context.BlobThumbName
    </Dropzone>
</div>`
StefanOssendorf commented 2 years ago

@rleath82 Your img needs to set pointer-events: none; to get it work with an image inside.