I am currently utilizing the onDrag method in React JS. My goal is to enable dragging while moving the image, without displaying the ghost image. I attempted using CSS "-webkit-user-drag:none", but it ended up completely disabling the drag functionality. I am looking for a way to have both functionalities work simultaneously.
Here is an example of the code:
<img
style={{ left: `${pixels}px` }}
onDrag={this.dragOn.bind('start')}
onDragEnd={this.dragOn.bind(this, 'end')}
alt=""
height="20"
width="15"
draggable="true"