E.dataTransfer.setDragImage at full opacity

I am using HTML5 drag and drop API. I set the drag and drop image using the visible node, but it has a halo / partially transparent.

Drag and Drop Image Settings:

evt.dataTransfer.setDragImage(someVisibleElement, -12, -8);

Each example that I see is translucent:

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

It looks like you cannot set the opacity for this element, is that true? There are no options in the MDN docs , but I was hoping someone would be able to confirm this. It seems strange to block us to an opacity of 50% if we can set the image.

+4
source share
2 answers

. , , .

+1

: -D. / , , , dom, dragstart dragend .

+4

Source: https://habr.com/ru/post/1546625/


All Articles