hi all,
i'm building a sketch plugin, allowing draging preview images from symbols to sketch. the preview images list in webview using the <img> tag. now, drag on the <img> tag and drop into the sketch works well.
but sometimes,the preview image could be very small, so drag on the small image is not a good idea. so i make the <div> element, which is the parent of <img>, draggable to expand the draggable area. but when dragging the <div> to sketch, sketch could not recognize the symbol. it looks like sketch only accepts image that dragging to it.
does anyone have any ideas how to make dragging div to sketch is acceptable?
code like this
<div draggable={true}
onDragEnd={this.insertSymbol} >
<img src={pngUrl} />
</div>
sorry for my poor english