Skip to content

setDragImage doesnt work #340

Closed
Closed
@steffanhalv

Description

@steffanhalv

Same issue as

SortableJS/Sortable#146

Example

https://kryogenix.org/code/browser/custom-drag-image.html

Step by step scenario

Actual Solution

Expected Solution

This should work

<draggable
          v-model="items"
          @start="modify"...

modify (e) {
        let dragIcon = document.createElement('img')
        dragIcon.src = 'https://www.google.no/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png'
        e.dataTransfer.setDragImage(dragIcon, 0, 0)
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions