Does not work when an image is dragged
manlymgmt-anthony opened this issue · comments
manlymgmt-anthony commented
When an image (ie PDF thumbnail) is used as a link, dragging the thumbnail image trigger's Chrome's default behaviour to extract the thumbnail jpg instead of downloading the link target PDF via the extension.
I assume dragging an image doesn't fire the 'dragstart' event.
Josephus Paye II commented
Currently it checks that the direct element being dragged is an <a>
with href
. To support images that are wrapped in a link like you described, it'll have to check if the element being dragged has a parent that is a link.