Customize - Drop Effects
A drag source can advertise a drop effect through DropEffect, which sets the
native dataTransfer.effectAllowed. Drag the boxes below and watch the
cursor over the bin: the copy box shows a “+” badge, the move box does not, and the
link box shows a shortcut arrow. The copyMove box allows both: it moves, and holding
Ctrl (⌥ on macOS) while dragging turns it into a copy. Over a target that cannot take the
box - or over no target at all - the cursor is the no-drop one whatever the effect.
Copy me (effect = copy)
Move me (effect = move)
Link me (effect = link)
Copy or move me (effect = copyMove)
Drop here
The browser only offers the effects a source allows, and draws the cursor from them:
move (the
default), copy, link, or a pair the user picks from with a modifier key -
copyMove, copyLink, linkMove and all. A source that allows a
single effect is not changed by modifier keys. The effect is the browser's feedback only: what a drop does is up
to the code - see copy or move, where OnEnd removes the moved box.